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.
*/
pub fn getModifier(self: AccessExpression, i: int) -> Modifier;

AccessExpression::getText

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

AccessExpression::getKind

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

AccessExpression::getAModifier

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

AccessExpression::getADecorator

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

AccessExpression::getAComment

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

AccessExpression::getFile

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

AccessExpression::getALeadingComment

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

AccessExpression::getAChild

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

AccessExpression::getStartColumnNumber

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.
*/
pub fn getADescendantByLevel(self: AccessExpression, level: int) -> *Node;

AccessExpression::getLocation

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

AccessExpression::getAnAncestor

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

AccessExpression::getDecorator

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

AccessExpression::getStartLineNumber

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

AccessExpression::getPropertyExpression

/**
* Gets the property expression of this AccessExpression.
*/
pub fn getPropertyExpression(self: AccessExpression) -> Expression;

AccessExpression::getChildCount

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

AccessExpression::getRoot

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

AccessExpression::getSymbol

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

AccessExpression::getAnAncestorEnclosingFunction

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

AccessExpression::getIndex

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

AccessExpression::__all__

Data constraint method.

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

AccessExpression::getPropertyName

pub fn getPropertyName(self: AccessExpression) -> string;

AccessExpression::getCallee

/**
* Gets the callee (GetAccessorDeclaration or SetAccessorDeclaration) of this access expression.
*/
pub fn getCallee(self: AccessExpression) -> FunctionLikeDeclaration;

AccessExpression::getChild

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

AccessExpression::getRelativePath

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

AccessExpression::isOptionalChaining

/**
* Determines whether this access expression is optional chaining.
*/
pub fn isOptionalChaining(self: AccessExpression) -> bool;

AccessExpression::getExpression

/**
* Gets the expression on which the property is accessed.
*/
pub fn getExpression(self: AccessExpression) -> LeftHandSideExpression;

AccessExpression::getParent

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

AccessExpression::getLastChild

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

AccessExpression::getEndColumnNumber

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

AccessExpression::getParentOid

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

AccessExpression::getEnclosingFunction

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

AccessExpression::getADescendant

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

AccessExpression::getEndLineNumber

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.
*/
pub fn getAnAncestorByLevel(self: AccessExpression, level: int) -> Node;

AccessExpression::getATrailingComment

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