Class EnumeratorAST

EnumeratorAST node.

Hierarchy (View Summary)

  • AST
    • EnumeratorAST

Constructors

  • Constructs an AST node.

    Parameters

    • handle: number

      the handle of the AST node.

    • kind: ASTKind

      the kind of the AST node.

    • parser: TranslationUnitLike

      the parser that owns the AST node.

    Returns EnumeratorAST

Properties

parser: TranslationUnitLike

the parser that owns the AST node.

Methods

  • Returns the location of the equal token in this node

    Returns undefined | Token

  • Returns the handle of the AST node.

    Returns number

    the handle of the AST node.

  • Returns the identifier attribute of this node

    Returns undefined | string

  • Returns the location of the identifier token in this node

    Returns undefined | Token

  • Returns true if the AST node is of the given kind.

    Parameters

    Returns boolean

    true if the AST node is of the given kind.

  • Returns true if the AST node is not of the given kind.

    Parameters

    Returns boolean

    true if the AST node is not of the given kind.

  • Returns the cursor of the AST node.

    The cursor is used to traverse the AST.

    Returns ASTCursor

    the cursor of the AST node.

  • Constructs an AST node from the given handle.

    Type Parameters

    Parameters

    • handle: number

      the handle of the AST node.

    • parser: TranslationUnitLike

      the parser that owns the AST node.

    Returns undefined | T

    the AST node.