Home Reference Source Repository
import {TryStatement} from 'esast/src/ast.js'
public class | source

TryStatement

Extends:

NodeStatement → TryStatement

try { block } catch (handler.param) { handler.body } finally { finalizer } At least one of handler or finalizer must be non-null.

Constructor Summary

Public Constructor
public

constructor(block: *, handler: *, finalizer: *)

Member Summary

Public Members
public
public
public

Inherited Summary

From class Node
public get

type: *

For compatibility with other AST representations, all Node instances have a 'type' property that is the name of that type.
public

toJSON(): *

Convert to JSON.
public

toString(): *

Public Constructors

public constructor(block: *, handler: *, finalizer: *) source

Params:

NameTypeAttributeDescription
block *
handler *
finalizer *

Public Members

public block: BlockStatement source

public finalizer: BlockStatement source

public handler: CatchClause source