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