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

BlockStatement

Extends:

NodeStatement → BlockStatement

A block statement, i.e., a sequence of statements surrounded by braces.

Constructor Summary

Public Constructor
public

constructor(body: *)

Member Summary

Public Members
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(body: *) source

Params:

NameTypeAttributeDescription
body *

Public Members

public body: Array<Statement> source