LiteralExpression
/**
* A literal expression.
*/
Inherit from PrimaryExpression
Primary key: id: int
schema LiteralExpression extends PrimaryExpression {
@primary id: int
}
LiteralExpression::getStartLineNumber
- Parameter
self
:LiteralExpression
- Return
int
pub fn getStartLineNumber(self: LiteralExpression) -> int;
LiteralExpression::getChild
/**
* Gets the `i`th child of this node.
*/
- Parameter
self
:LiteralExpression
- Parameter
i
:int
- Return
Node
pub fn getChild(self: LiteralExpression, i: int) -> Node;
LiteralExpression::getATrailingComment
/**
* Gets the trailing comments of it
*/
- Parameter
self
:LiteralExpression
- Return
*Comment
pub fn getATrailingComment(self: LiteralExpression) -> *Comment;
LiteralExpression::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.
*/
- Parameter
self
:LiteralExpression
- Parameter
level
:int
- Return
Node
pub fn getAnAncestorByLevel(self: LiteralExpression, level: int) -> Node;
LiteralExpression::getEndLineNumber
- Parameter
self
:LiteralExpression
- Return
int
pub fn getEndLineNumber(self: LiteralExpression) -> int;
LiteralExpression::getADescendant
/**
* Gets a descendant of this node.
*/
- Parameter
self
:LiteralExpression
- Return
*Node
pub fn getADescendant(self: LiteralExpression) -> *Node;
LiteralExpression::getEnclosingFunction
/**
* Gets the enclosing function of it
*/
- Parameter
self
:LiteralExpression
- Return
FunctionLikeDeclaration
pub fn getEnclosingFunction(self: LiteralExpression) -> FunctionLikeDeclaration;
LiteralExpression::getParentOid
/**
* Gets the parent oid of this node.
*/
- Parameter
self
:LiteralExpression
- Return
int
pub fn getParentOid(self: LiteralExpression) -> int;
LiteralExpression::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.
*/
- Parameter
self
:LiteralExpression
- Parameter
level
:int
- Return
*Node
pub fn getADescendantByLevel(self: LiteralExpression, level: int) -> *Node;
LiteralExpression::getLocation
/**
* Gets the location of this node.
*/
- Parameter
self
:LiteralExpression
- Return
Location
pub fn getLocation(self: LiteralExpression) -> Location;
LiteralExpression::getFile
/**
* Gets the file of this node.
*/
- Parameter
self
:LiteralExpression
- Return
File
pub fn getFile(self: LiteralExpression) -> File;
LiteralExpression::getALeadingComment
/**
* Gets the leading comments of it
*/
- Parameter
self
:LiteralExpression
- Return
*Comment
pub fn getALeadingComment(self: LiteralExpression) -> *Comment;
LiteralExpression::getAComment
/**
* Gets the comments related to it
*/
- Parameter
self
:LiteralExpression
- Return
*Comment
pub fn getAComment(self: LiteralExpression) -> *Comment;
LiteralExpression::getADecorator
/**
* Gets a decorator.
*/
- Parameter
self
:LiteralExpression
- Return
*Decorator
pub fn getADecorator(self: LiteralExpression) -> *Decorator;
LiteralExpression::__all__
Data constraint method.
- Parameter
db
:JavascriptDB
- Return
*LiteralExpression
pub fn __all__(db: JavascriptDB) -> *LiteralExpression;
LiteralExpression::getAnAncestor
/**
* Gets an ancestor of this node.
*/
- Parameter
self
:LiteralExpression
- Return
*Node
pub fn getAnAncestor(self: LiteralExpression) -> *Node;
LiteralExpression::getValue
/**
* Gets the value of this literal, as a string.
*/
- Parameter
self
:LiteralExpression
- Return
string
pub fn getValue(self: LiteralExpression) -> string;
LiteralExpression::getRoot
/**
* Gets the root top-level of this node.
*/
- Parameter
self
:LiteralExpression
- Return
TopLevelDO
pub fn getRoot(self: LiteralExpression) -> TopLevelDO;
LiteralExpression::getDecorator
/**
* Gets the `i`th decorator.
*/
- Parameter
self
:LiteralExpression
- Parameter
i
:int
- Return
Decorator
pub fn getDecorator(self: LiteralExpression, i: int) -> Decorator;
LiteralExpression::getChildCount
/**
* Gets the number of child nodes.
*/
- Parameter
self
:LiteralExpression
- Return
int
pub fn getChildCount(self: LiteralExpression) -> int;
LiteralExpression::getAModifier
/**
* Gets a modifier.
*/
- Parameter
self
:LiteralExpression
- Return
*Modifier
pub fn getAModifier(self: LiteralExpression) -> *Modifier;
LiteralExpression::getKind
/**
* Get the syntax kind of this node
*/
- Parameter
self
:LiteralExpression
- Return
int
pub fn getKind(self: LiteralExpression) -> int;
LiteralExpression::getText
/**
* Gets the text of this node.
*/
- Parameter
self
:LiteralExpression
- Return
string
pub fn getText(self: LiteralExpression) -> string;
LiteralExpression::getModifier
/**
* Gets the `i`th modifier.
*/
- Parameter
self
:LiteralExpression
- Parameter
i
:int
- Return
Modifier
pub fn getModifier(self: LiteralExpression, i: int) -> Modifier;
LiteralExpression::getAChild
/**
* Gets a child node of this node.
*/
- Parameter
self
:LiteralExpression
- Return
*Node
pub fn getAChild(self: LiteralExpression) -> *Node;
LiteralExpression::getStartColumnNumber
- Parameter
self
:LiteralExpression
- Return
int
pub fn getStartColumnNumber(self: LiteralExpression) -> int;
LiteralExpression::getLastChild
/**
* Gets the last child of this node parent.
*/
- Parameter
self
:LiteralExpression
- Return
Node
pub fn getLastChild(self: LiteralExpression) -> Node;
LiteralExpression::getEndColumnNumber
- Parameter
self
:LiteralExpression
- Return
int
pub fn getEndColumnNumber(self: LiteralExpression) -> int;
LiteralExpression::getParent
/**
* Gets the parent node of this node.
*/
- Parameter
self
:LiteralExpression
- Return
Node
pub fn getParent(self: LiteralExpression) -> Node;
LiteralExpression::getExpression
- Parameter
self
:LiteralExpression
- Return
Expression
pub fn getExpression(self: LiteralExpression) -> Expression;
LiteralExpression::getRelativePath
/**
* Gets the relative path of this node.
*/
- Parameter
self
:LiteralExpression
- Return
string
pub fn getRelativePath(self: LiteralExpression) -> string;
LiteralExpression::getSymbol
/**
* Gets the symbol associated with this node.
*/
- Parameter
self
:LiteralExpression
- Return
Symbol
pub fn getSymbol(self: LiteralExpression) -> Symbol;
LiteralExpression::getAnAncestorEnclosingFunction
/**
* Gets an ancestor enclosing function of it
*/
- Parameter
self
:LiteralExpression
- Return
*FunctionLikeDeclaration
pub fn getAnAncestorEnclosingFunction(self: LiteralExpression) -> *FunctionLikeDeclaration;
LiteralExpression::getIndex
- Parameter
self
:LiteralExpression
- Return
int
pub fn getIndex(self: LiteralExpression) -> int;