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

Node

Base type of all ASTs.

Member Summary

Public Members
public get

type: *

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

Method Summary

Public Methods
public

toJSON(): *

Convert to JSON.
public

toString(): *

Public Members

public get type: * source

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

See:

Public Methods

public toJSON(): * source

Convert to JSON.

Return:

*

See:

public toString(): * source

Return:

*