BindingElement
/**
* A binding element.
*/
Inherit from Node
Primary key: id: int
schema BindingElement extends Node {
@primary id: int
}
BindingElement::getEnclosingFunction
/**
* Gets the enclosing function of it
*/
- Parameter
self
:BindingElement
- Return
FunctionLikeDeclaration
pub fn getEnclosingFunction(self: BindingElement) -> FunctionLikeDeclaration;
BindingElement::getADescendant
/**
* Gets a descendant of this node.
*/
- Parameter
self
:BindingElement
- Return
*Node
pub fn getADescendant(self: BindingElement) -> *Node;
BindingElement::getRoot
/**
* Gets the root top-level of this node.
*/
- Parameter
self
:BindingElement
- Return
TopLevelDO
pub fn getRoot(self: BindingElement) -> TopLevelDO;
BindingElement::getAnAncestor
/**
* Gets an ancestor of this node.
*/
- Parameter
self
:BindingElement
- Return
*Node
pub fn getAnAncestor(self: BindingElement) -> *Node;
BindingElement::getChild
/**
* Gets the `i`th child of this node.
*/
- Parameter
self
:BindingElement
- Parameter
i
:int
- Return
Node
pub fn getChild(self: BindingElement, i: int) -> Node;
BindingElement::getChildCount
/**
* Gets the number of child nodes.
*/
- Parameter
self
:BindingElement
- Return
int
pub fn getChildCount(self: BindingElement) -> int;
BindingElement::getAChild
/**
* Gets a child node of this node.
*/
- Parameter
self
:BindingElement
- Return
*Node
pub fn getAChild(self: BindingElement) -> *Node;
BindingElement::getStartColumnNumber
- Parameter
self
:BindingElement
- Return
int
pub fn getStartColumnNumber(self: BindingElement) -> int;
BindingElement::getAnAncestorEnclosingFunction
/**
* Gets an ancestor enclosing function of it
*/
- Parameter
self
:BindingElement
- Return
*FunctionLikeDeclaration
pub fn getAnAncestorEnclosingFunction(self: BindingElement) -> *FunctionLikeDeclaration;
BindingElement::getSymbol
/**
* Gets the symbol associated with this node.
*/
- Parameter
self
:BindingElement
- Return
Symbol
pub fn getSymbol(self: BindingElement) -> Symbol;
BindingElement::getIndex
- Parameter
self
:BindingElement
- Return
int
pub fn getIndex(self: BindingElement) -> int;
BindingElement::getParentOid
/**
* Gets the parent oid of this node.
*/
- Parameter
self
:BindingElement
- Return
int
pub fn getParentOid(self: BindingElement) -> int;
BindingElement::getRelativePath
/**
* Gets the relative path of this node.
*/
- Parameter
self
:BindingElement
- Return
string
pub fn getRelativePath(self: BindingElement) -> string;
BindingElement::getEndColumnNumber
- Parameter
self
:BindingElement
- Return
int
pub fn getEndColumnNumber(self: BindingElement) -> int;
BindingElement::getFile
/**
* Gets the file of this node.
*/
- Parameter
self
:BindingElement
- Return
File
pub fn getFile(self: BindingElement) -> File;
BindingElement::hasInitializer
/**
* Determines whether this BindingElement has the initializer.
*/
- Parameter
self
:BindingElement
- Return
bool
pub fn hasInitializer(self: BindingElement) -> bool;
BindingElement::getInitializer
/**
* Get the initialization expression.
*/
- Parameter
self
:BindingElement
- Return
Expression
pub fn getInitializer(self: BindingElement) -> Expression;
BindingElement::getLastChild
/**
* Gets the last child of this node parent.
*/
- Parameter
self
:BindingElement
- Return
Node
pub fn getLastChild(self: BindingElement) -> Node;
BindingElement::getNameNode
/**
* Get the name node.
*/
- Parameter
self
:BindingElement
- Return
BindingName
pub fn getNameNode(self: BindingElement) -> BindingName;
BindingElement::getPropertyNameString
- Parameter
self
:BindingElement
- Return
string
pub fn getPropertyNameString(self: BindingElement) -> string;
BindingElement::hasPropertyName
- Parameter
self
:BindingElement
- Return
bool
pub fn hasPropertyName(self: BindingElement) -> bool;
BindingElement::getParent
- Parameter
self
:BindingElement
- Return
BindingPattern
pub fn getParent(self: BindingElement) -> BindingPattern;
BindingElement::__all__
Data constraint method.
- Parameter
db
:JavascriptDB
- Return
*BindingElement
pub fn __all__(db: JavascriptDB) -> *BindingElement;
BindingElement::getKind
/**
* Get the syntax kind of this node
*/
- Parameter
self
:BindingElement
- Return
int
pub fn getKind(self: BindingElement) -> int;
BindingElement::getAModifier
/**
* Gets a modifier.
*/
- Parameter
self
:BindingElement
- Return
*Modifier
pub fn getAModifier(self: BindingElement) -> *Modifier;
BindingElement::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
:BindingElement
- Parameter
level
:int
- Return
*Node
pub fn getADescendantByLevel(self: BindingElement, level: int) -> *Node;
BindingElement::isRest
/**
* Whether this binding element is a rest element.
*/
- Parameter
self
:BindingElement
- Return
bool
pub fn isRest(self: BindingElement) -> bool;
BindingElement::getStartLineNumber
- Parameter
self
:BindingElement
- Return
int
pub fn getStartLineNumber(self: BindingElement) -> int;
BindingElement::getModifier
/**
* Gets the `i`th modifier.
*/
- Parameter
self
:BindingElement
- Parameter
i
:int
- Return
Modifier
pub fn getModifier(self: BindingElement, i: int) -> Modifier;
BindingElement::getPropertyName
/**
* Get the bound property name node (only in object binding pattern).
*/
- Parameter
self
:BindingElement
- Return
PropertyName
pub fn getPropertyName(self: BindingElement) -> PropertyName;
BindingElement::getLocation
/**
* Gets the location of this node.
*/
- Parameter
self
:BindingElement
- Return
Location
pub fn getLocation(self: BindingElement) -> Location;
BindingElement::getDotDotDotToken
/**
* Gets the `...` token.
*/
- Parameter
self
:BindingElement
- Return
DotDotDotToken
pub fn getDotDotDotToken(self: BindingElement) -> DotDotDotToken;
BindingElement::getDecorator
/**
* Gets the `i`th decorator.
*/
- Parameter
self
:BindingElement
- Parameter
i
:int
- Return
Decorator
pub fn getDecorator(self: BindingElement, i: int) -> Decorator;
BindingElement::getText
/**
* Gets the text of this node.
*/
- Parameter
self
:BindingElement
- Return
string
pub fn getText(self: BindingElement) -> string;
BindingElement::getADecorator
/**
* Gets a decorator.
*/
- Parameter
self
:BindingElement
- Return
*Decorator
pub fn getADecorator(self: BindingElement) -> *Decorator;
BindingElement::getAComment
/**
* Gets the comments related to it
*/
- Parameter
self
:BindingElement
- Return
*Comment
pub fn getAComment(self: BindingElement) -> *Comment;
BindingElement::getALeadingComment
/**
* Gets the leading comments of it
*/
- Parameter
self
:BindingElement
- Return
*Comment
pub fn getALeadingComment(self: BindingElement) -> *Comment;
BindingElement::getATrailingComment
/**
* Gets the trailing comments of it
*/
- Parameter
self
:BindingElement
- Return
*Comment
pub fn getATrailingComment(self: BindingElement) -> *Comment;
BindingElement::getEndLineNumber
- Parameter
self
:BindingElement
- Return
int
pub fn getEndLineNumber(self: BindingElement) -> int;
BindingElement::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
:BindingElement
- Parameter
level
:int
- Return
Node
pub fn getAnAncestorByLevel(self: BindingElement, level: int) -> Node;