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