Identifier

/**
* An identifier.
*/

Inherit from PrimaryExpression

Primary key: id: int

schema Identifier extends PrimaryExpression {
  @primary id: int
}

Identifier::getAnAncestor

/**
* Gets an ancestor of this node. 
*/
pub fn getAnAncestor(self: Identifier) -> *Node;

Identifier::getStartLineNumber

pub fn getStartLineNumber(self: Identifier) -> int;

Identifier::getChild

/**
* Gets the `i`th child of this node.
*/
pub fn getChild(self: Identifier, i: int) -> Node;

Identifier::getATrailingComment

/**
* Gets the trailing comments of it
*/
pub fn getATrailingComment(self: Identifier) -> *Comment;

Identifier::getAnAncestorByLevel

/**
* Gets an ancestor of this node by the level of the hierarchy.
*
* @param level: the number of levels to go up in the hierarchy.
*/
pub fn getAnAncestorByLevel(self: Identifier, level: int) -> Node;

Identifier::getEndLineNumber

pub fn getEndLineNumber(self: Identifier) -> int;

Identifier::getParentOid

/**
* Gets the parent oid of this node.
*/
pub fn getParentOid(self: Identifier) -> int;

Identifier::getADescendantByLevel

/**
* Gets a descendant of this node by the level of the hierarchy.
*
* @param level: the number of levels to go up in the hierarchy.
*/
pub fn getADescendantByLevel(self: Identifier, level: int) -> *Node;

Identifier::getLocation

/**
* Gets the location of this node.
*/
pub fn getLocation(self: Identifier) -> Location;

Identifier::getFile

/**
* Gets the file of this node.
*/
pub fn getFile(self: Identifier) -> File;

Identifier::getALeadingComment

/**
* Gets the leading comments of it
*/
pub fn getALeadingComment(self: Identifier) -> *Comment;

Identifier::getAComment

/**
* Gets the comments related to it
*/
pub fn getAComment(self: Identifier) -> *Comment;

Identifier::getADecorator

/**
* Gets a decorator.
*/
pub fn getADecorator(self: Identifier) -> *Decorator;

Identifier::__all__

Data constraint method.

pub fn __all__(db: JavascriptDB) -> *Identifier;

Identifier::getADescendant

/**
* Gets a descendant of this node. 
*/
pub fn getADescendant(self: Identifier) -> *Node;

Identifier::getEnclosingFunction

/**
* Gets the enclosing function of it
*/
pub fn getEnclosingFunction(self: Identifier) -> FunctionLikeDeclaration;

Identifier::getName

pub fn getName(self: Identifier) -> string;

Identifier::getRelativePath

/**
* Gets the relative path of this node.
*/
pub fn getRelativePath(self: Identifier) -> string;

Identifier::getModifier

/**
* Gets the `i`th modifier.
*/
pub fn getModifier(self: Identifier, i: int) -> Modifier;

Identifier::getText

/**
* Gets the text of this node.
*/
pub fn getText(self: Identifier) -> string;

Identifier::getDecorator

/**
* Gets the `i`th decorator.
*/
pub fn getDecorator(self: Identifier, i: int) -> Decorator;

Identifier::getChildCount

/**
* Gets the number of child nodes.
*/
pub fn getChildCount(self: Identifier) -> int;

Identifier::getAModifier

/**
* Gets a modifier.
*/
pub fn getAModifier(self: Identifier) -> *Modifier;

Identifier::getKind

/**
* Get the syntax kind of this node
*/
pub fn getKind(self: Identifier) -> int;

Identifier::getAChild

/**
* Gets a child node of this node.
*/
pub fn getAChild(self: Identifier) -> *Node;

Identifier::getStartColumnNumber

pub fn getStartColumnNumber(self: Identifier) -> int;

Identifier::getLastChild

/**
* Gets the last child of this node parent.
*/
pub fn getLastChild(self: Identifier) -> Node;

Identifier::getEndColumnNumber

pub fn getEndColumnNumber(self: Identifier) -> int;

Identifier::getParent

/**
* Gets the parent node of this node.
*/
pub fn getParent(self: Identifier) -> Node;

Identifier::getExpression

pub fn getExpression(self: Identifier) -> Expression;

Identifier::getRoot

/**
* Gets the root top-level of this node. 
*/
pub fn getRoot(self: Identifier) -> TopLevelDO;

Identifier::getSymbol

/**
* Gets the symbol associated with this node.
*/
pub fn getSymbol(self: Identifier) -> Symbol;

Identifier::getAnAncestorEnclosingFunction

/**
* Gets an ancestor enclosing function of it
*/
pub fn getAnAncestorEnclosingFunction(self: Identifier) -> *FunctionLikeDeclaration;

Identifier::getIndex

pub fn getIndex(self: Identifier) -> int;