ElementAccessExpression
/**
* An element access expression.
*
* Example:
* ```
* o['p']
* ```
*/
Inherit from AccessExpression
Primary key: id: int
schema ElementAccessExpression extends AccessExpression {
@primary id: int
}
ElementAccessExpression::getATrailingComment
/**
* Gets the trailing comments of it
*/
- Parameter
self
:ElementAccessExpression
- Return
*Comment
pub fn getATrailingComment(self: ElementAccessExpression) -> *Comment;
ElementAccessExpression::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
:ElementAccessExpression
- Parameter
level
:int
- Return
Node
pub fn getAnAncestorByLevel(self: ElementAccessExpression, level: int) -> Node;
ElementAccessExpression::getEndLineNumber
- Parameter
self
:ElementAccessExpression
- Return
int
pub fn getEndLineNumber(self: ElementAccessExpression) -> int;
ElementAccessExpression::getADescendant
/**
* Gets a descendant of this node.
*/
- Parameter
self
:ElementAccessExpression
- Return
*Node
pub fn getADescendant(self: ElementAccessExpression) -> *Node;
ElementAccessExpression::getEnclosingFunction
/**
* Gets the enclosing function of it
*/
- Parameter
self
:ElementAccessExpression
- Return
FunctionLikeDeclaration
pub fn getEnclosingFunction(self: ElementAccessExpression) -> FunctionLikeDeclaration;
ElementAccessExpression::getParentOid
/**
* Gets the parent oid of this node.
*/
- Parameter
self
:ElementAccessExpression
- Return
int
pub fn getParentOid(self: ElementAccessExpression) -> int;
ElementAccessExpression::getEndColumnNumber
- Parameter
self
:ElementAccessExpression
- Return
int
pub fn getEndColumnNumber(self: ElementAccessExpression) -> int;
ElementAccessExpression::getLastChild
/**
* Gets the last child of this node parent.
*/
- Parameter
self
:ElementAccessExpression
- Return
Node
pub fn getLastChild(self: ElementAccessExpression) -> Node;
ElementAccessExpression::getParent
/**
* Gets the parent node of this node.
*/
- Parameter
self
:ElementAccessExpression
- Return
Node
pub fn getParent(self: ElementAccessExpression) -> Node;
ElementAccessExpression::getExpression
/**
* Gets the expression on which the property is accessed.
*/
- Parameter
self
:ElementAccessExpression
- Return
LeftHandSideExpression
pub fn getExpression(self: ElementAccessExpression) -> LeftHandSideExpression;
ElementAccessExpression::isOptionalChaining
/**
* Determines whether this access expression is optional chaining.
*/
- Parameter
self
:ElementAccessExpression
- Return
bool
pub fn isOptionalChaining(self: ElementAccessExpression) -> bool;
ElementAccessExpression::getRelativePath
/**
* Gets the relative path of this node.
*/
- Parameter
self
:ElementAccessExpression
- Return
string
pub fn getRelativePath(self: ElementAccessExpression) -> string;
ElementAccessExpression::getChild
/**
* Gets the `i`th child of this node.
*/
- Parameter
self
:ElementAccessExpression
- Parameter
i
:int
- Return
Node
pub fn getChild(self: ElementAccessExpression, i: int) -> Node;
ElementAccessExpression::getCallee
/**
* Gets the callee (GetAccessorDeclaration or SetAccessorDeclaration) of this access expression.
*/
- Parameter
self
:ElementAccessExpression
- Return
FunctionLikeDeclaration
pub fn getCallee(self: ElementAccessExpression) -> FunctionLikeDeclaration;
ElementAccessExpression::getIndex
- Parameter
self
:ElementAccessExpression
- Return
int
pub fn getIndex(self: ElementAccessExpression) -> int;
ElementAccessExpression::getFile
/**
* Gets the file of this node.
*/
- Parameter
self
:ElementAccessExpression
- Return
File
pub fn getFile(self: ElementAccessExpression) -> File;
ElementAccessExpression::getALeadingComment
/**
* Gets the leading comments of it
*/
- Parameter
self
:ElementAccessExpression
- Return
*Comment
pub fn getALeadingComment(self: ElementAccessExpression) -> *Comment;
ElementAccessExpression::getAComment
/**
* Gets the comments related to it
*/
- Parameter
self
:ElementAccessExpression
- Return
*Comment
pub fn getAComment(self: ElementAccessExpression) -> *Comment;
ElementAccessExpression::getADecorator
/**
* Gets a decorator.
*/
- Parameter
self
:ElementAccessExpression
- Return
*Decorator
pub fn getADecorator(self: ElementAccessExpression) -> *Decorator;
ElementAccessExpression::getArgumentExpression
- Parameter
self
:ElementAccessExpression
- Return
Expression
pub fn getArgumentExpression(self: ElementAccessExpression) -> Expression;
ElementAccessExpression::__all__
Data constraint method.
- Parameter
db
:JavascriptDB
- Return
*ElementAccessExpression
pub fn __all__(db: JavascriptDB) -> *ElementAccessExpression;
ElementAccessExpression::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
:ElementAccessExpression
- Parameter
level
:int
- Return
*Node
pub fn getADescendantByLevel(self: ElementAccessExpression, level: int) -> *Node;
ElementAccessExpression::getLocation
/**
* Gets the location of this node.
*/
- Parameter
self
:ElementAccessExpression
- Return
Location
pub fn getLocation(self: ElementAccessExpression) -> Location;
ElementAccessExpression::getAModifier
/**
* Gets a modifier.
*/
- Parameter
self
:ElementAccessExpression
- Return
*Modifier
pub fn getAModifier(self: ElementAccessExpression) -> *Modifier;
ElementAccessExpression::getKind
/**
* Get the syntax kind of this node
*/
- Parameter
self
:ElementAccessExpression
- Return
int
pub fn getKind(self: ElementAccessExpression) -> int;
ElementAccessExpression::getPropertyName
- Parameter
self
:ElementAccessExpression
- Return
string
pub fn getPropertyName(self: ElementAccessExpression) -> string;
ElementAccessExpression::getModifier
/**
* Gets the `i`th modifier.
*/
- Parameter
self
:ElementAccessExpression
- Parameter
i
:int
- Return
Modifier
pub fn getModifier(self: ElementAccessExpression, i: int) -> Modifier;
ElementAccessExpression::getText
/**
* Gets the text of this node.
*/
- Parameter
self
:ElementAccessExpression
- Return
string
pub fn getText(self: ElementAccessExpression) -> string;
ElementAccessExpression::getDecorator
/**
* Gets the `i`th decorator.
*/
- Parameter
self
:ElementAccessExpression
- Parameter
i
:int
- Return
Decorator
pub fn getDecorator(self: ElementAccessExpression, i: int) -> Decorator;
ElementAccessExpression::getChildCount
/**
* Gets the number of child nodes.
*/
- Parameter
self
:ElementAccessExpression
- Return
int
pub fn getChildCount(self: ElementAccessExpression) -> int;
ElementAccessExpression::getAChild
/**
* Gets a child node of this node.
*/
- Parameter
self
:ElementAccessExpression
- Return
*Node
pub fn getAChild(self: ElementAccessExpression) -> *Node;
ElementAccessExpression::getStartColumnNumber
- Parameter
self
:ElementAccessExpression
- Return
int
pub fn getStartColumnNumber(self: ElementAccessExpression) -> int;
ElementAccessExpression::getPropertyExpression
/**
* Gets the property expression of this AccessExpression.
*/
- Parameter
self
:ElementAccessExpression
- Return
Expression
pub fn getPropertyExpression(self: ElementAccessExpression) -> Expression;
ElementAccessExpression::getStartLineNumber
- Parameter
self
:ElementAccessExpression
- Return
int
pub fn getStartLineNumber(self: ElementAccessExpression) -> int;
ElementAccessExpression::getAnAncestor
/**
* Gets an ancestor of this node.
*/
- Parameter
self
:ElementAccessExpression
- Return
*Node
pub fn getAnAncestor(self: ElementAccessExpression) -> *Node;
ElementAccessExpression::getRoot
/**
* Gets the root top-level of this node.
*/
- Parameter
self
:ElementAccessExpression
- Return
TopLevelDO
pub fn getRoot(self: ElementAccessExpression) -> TopLevelDO;
ElementAccessExpression::getSymbol
/**
* Gets the symbol associated with this node.
*/
- Parameter
self
:ElementAccessExpression
- Return
Symbol
pub fn getSymbol(self: ElementAccessExpression) -> Symbol;
ElementAccessExpression::getAnAncestorEnclosingFunction
/**
* Gets an ancestor enclosing function of it
*/
- Parameter
self
:ElementAccessExpression
- Return
*FunctionLikeDeclaration
pub fn getAnAncestorEnclosingFunction(self: ElementAccessExpression) -> *FunctionLikeDeclaration;