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

LabeledStatement

Extends:

NodeStatement → LabeledStatement

A statement prefixed by a label.

Constructor Summary

Public Constructor
public

constructor(label: *, body: *)

Member Summary

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

Params:

NameTypeAttributeDescription
label *
body *

Public Members

public body: Statement source

public label: Identifier source