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