🚧 Still under progress. Soon will be finished.

VariableNode

CLASS code

Description

Represents the reflected node of a variable declaration

Methods

  • getContext

    code
    getContext(): ProjectContext

    Returns

    ProjectContext:
  • getName

    code
    getName(): string

    Returns

    string:
  • getTSNode

    code
    getTSNode(): VariableDeclaration

    Returns

    VariableDeclaration:
  • getNodeType

    code
    getNodeType(): RootNodeType

    Returns

    RootNodeType:
  • getKind

    code
    getKind(): DeclarationKind.Variable

    Returns

    DeclarationKind.Variable:
  • getDecorators

    code
    getDecorators(): DecoratorNode[]

    Returns

    DecoratorNode[]:
  • getLine

    code
    getLine(): number

    Returns

    number:
  • getType

    code
    getType(): ReflectedNode<Type, Node>

    Returns

    ReflectedNode<Type, Node>:
  • getValue

    code
    getValue(): unknown

    Returns

    unknown:
  • getNamespace

    code
    getNamespace(): string

    Returns

    string:
  • getJSDoc

    code
    getJSDoc(): CommentNode

    Returns

    CommentNode:
  • serialize

    code

    Serializes the reflected node

    serialize(): VariableDeclaration

    Returns

    VariableDeclaration:

    The reflected node as a serializable object