ShorthandPropertyAssignment
/**
* A shorthand property assignment.
*
* TODO: handle decorators and modifiers
*/
Inherit from ObjectLiteralElement
Primary key: id: int
schema ShorthandPropertyAssignment extends ObjectLiteralElement {
@primary id: int
}
ShorthandPropertyAssignment::getIndex
- Parameter
self
:ShorthandPropertyAssignment
- Return
int
pub fn getIndex(self: ShorthandPropertyAssignment) -> int;
ShorthandPropertyAssignment::getParentOid
/**
* Gets the parent oid of this node.
*/
- Parameter
self
:ShorthandPropertyAssignment
- Return
int
pub fn getParentOid(self: ShorthandPropertyAssignment) -> int;
ShorthandPropertyAssignment::getEndColumnNumber
- Parameter
self
:ShorthandPropertyAssignment
- Return
int
pub fn getEndColumnNumber(self: ShorthandPropertyAssignment) -> int;
ShorthandPropertyAssignment::getKind
/**
* Get the syntax kind of this node
*/
- Parameter
self
:ShorthandPropertyAssignment
- Return
int
pub fn getKind(self: ShorthandPropertyAssignment) -> int;
ShorthandPropertyAssignment::getAModifier
/**
* Gets a modifier.
*/
- Parameter
self
:ShorthandPropertyAssignment
- Return
*Modifier
pub fn getAModifier(self: ShorthandPropertyAssignment) -> *Modifier;
ShorthandPropertyAssignment::getStartLineNumber
- Parameter
self
:ShorthandPropertyAssignment
- Return
int
pub fn getStartLineNumber(self: ShorthandPropertyAssignment) -> int;
ShorthandPropertyAssignment::getText
/**
* Gets the text of this node.
*/
- Parameter
self
:ShorthandPropertyAssignment
- Return
string
pub fn getText(self: ShorthandPropertyAssignment) -> string;
ShorthandPropertyAssignment::getModifier
/**
* Gets the `i`th modifier.
*/
- Parameter
self
:ShorthandPropertyAssignment
- Parameter
i
:int
- Return
Modifier
pub fn getModifier(self: ShorthandPropertyAssignment, i: int) -> Modifier;
ShorthandPropertyAssignment::getRelativePath
/**
* Gets the relative path of this node.
*/
- Parameter
self
:ShorthandPropertyAssignment
- Return
string
pub fn getRelativePath(self: ShorthandPropertyAssignment) -> string;
ShorthandPropertyAssignment::getDecorator
/**
* Gets the `i`th decorator.
*/
- Parameter
self
:ShorthandPropertyAssignment
- Parameter
i
:int
- Return
Decorator
pub fn getDecorator(self: ShorthandPropertyAssignment, i: int) -> Decorator;
ShorthandPropertyAssignment::getChildCount
/**
* Gets the number of child nodes.
*/
- Parameter
self
:ShorthandPropertyAssignment
- Return
int
pub fn getChildCount(self: ShorthandPropertyAssignment) -> int;
ShorthandPropertyAssignment::getChild
/**
* Gets the `i`th child of this node.
*/
- Parameter
self
:ShorthandPropertyAssignment
- Parameter
i
:int
- Return
Node
pub fn getChild(self: ShorthandPropertyAssignment, i: int) -> Node;
ShorthandPropertyAssignment::getRoot
/**
* Gets the root top-level of this node.
*/
- Parameter
self
:ShorthandPropertyAssignment
- Return
TopLevelDO
pub fn getRoot(self: ShorthandPropertyAssignment) -> TopLevelDO;
ShorthandPropertyAssignment::getParent
- Parameter
self
:ShorthandPropertyAssignment
- Return
ObjectLiteralExpression
pub fn getParent(self: ShorthandPropertyAssignment) -> ObjectLiteralExpression;
ShorthandPropertyAssignment::__all__
Data constraint method.
- Parameter
db
:JavascriptDB
- Return
*ShorthandPropertyAssignment
pub fn __all__(db: JavascriptDB) -> *ShorthandPropertyAssignment;
ShorthandPropertyAssignment::getLocation
/**
* Gets the location of this node.
*/
- Parameter
self
:ShorthandPropertyAssignment
- Return
Location
pub fn getLocation(self: ShorthandPropertyAssignment) -> Location;
ShorthandPropertyAssignment::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
:ShorthandPropertyAssignment
- Parameter
level
:int
- Return
*Node
pub fn getADescendantByLevel(self: ShorthandPropertyAssignment, level: int) -> *Node;
ShorthandPropertyAssignment::getLastChild
/**
* Gets the last child of this node parent.
*/
- Parameter
self
:ShorthandPropertyAssignment
- Return
Node
pub fn getLastChild(self: ShorthandPropertyAssignment) -> Node;
ShorthandPropertyAssignment::getNameNode
- Parameter
self
:ShorthandPropertyAssignment
- Return
Identifier
pub fn getNameNode(self: ShorthandPropertyAssignment) -> Identifier;
ShorthandPropertyAssignment::getADescendant
/**
* Gets a descendant of this node.
*/
- Parameter
self
:ShorthandPropertyAssignment
- Return
*Node
pub fn getADescendant(self: ShorthandPropertyAssignment) -> *Node;
ShorthandPropertyAssignment::getEnclosingFunction
/**
* Gets the enclosing function of it
*/
- Parameter
self
:ShorthandPropertyAssignment
- Return
FunctionLikeDeclaration
pub fn getEnclosingFunction(self: ShorthandPropertyAssignment) -> FunctionLikeDeclaration;
ShorthandPropertyAssignment::getName
- Parameter
self
:ShorthandPropertyAssignment
- Return
string
pub fn getName(self: ShorthandPropertyAssignment) -> string;
ShorthandPropertyAssignment::getAnAncestor
/**
* Gets an ancestor of this node.
*/
- Parameter
self
:ShorthandPropertyAssignment
- Return
*Node
pub fn getAnAncestor(self: ShorthandPropertyAssignment) -> *Node;
ShorthandPropertyAssignment::getIdentifier
- Parameter
self
:ShorthandPropertyAssignment
- Return
Identifier
pub fn getIdentifier(self: ShorthandPropertyAssignment) -> Identifier;
ShorthandPropertyAssignment::getAChild
/**
* Gets a child node of this node.
*/
- Parameter
self
:ShorthandPropertyAssignment
- Return
*Node
pub fn getAChild(self: ShorthandPropertyAssignment) -> *Node;
ShorthandPropertyAssignment::getStartColumnNumber
- Parameter
self
:ShorthandPropertyAssignment
- Return
int
pub fn getStartColumnNumber(self: ShorthandPropertyAssignment) -> int;
ShorthandPropertyAssignment::getSymbol
/**
* Gets the symbol associated with this node.
*/
- Parameter
self
:ShorthandPropertyAssignment
- Return
Symbol
pub fn getSymbol(self: ShorthandPropertyAssignment) -> Symbol;
ShorthandPropertyAssignment::getAnAncestorEnclosingFunction
/**
* Gets an ancestor enclosing function of it
*/
- Parameter
self
:ShorthandPropertyAssignment
- Return
*FunctionLikeDeclaration
pub fn getAnAncestorEnclosingFunction(self: ShorthandPropertyAssignment) -> *FunctionLikeDeclaration;
ShorthandPropertyAssignment::getValueSymbol
/**
* Gets the value symbol associated with this shorthand property assignment.
*/
- Parameter
self
:ShorthandPropertyAssignment
- Return
Symbol
pub fn getValueSymbol(self: ShorthandPropertyAssignment) -> Symbol;
ShorthandPropertyAssignment::getEndLineNumber
- Parameter
self
:ShorthandPropertyAssignment
- Return
int
pub fn getEndLineNumber(self: ShorthandPropertyAssignment) -> int;
ShorthandPropertyAssignment::getATrailingComment
/**
* Gets the trailing comments of it
*/
- Parameter
self
:ShorthandPropertyAssignment
- Return
*Comment
pub fn getATrailingComment(self: ShorthandPropertyAssignment) -> *Comment;
ShorthandPropertyAssignment::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
:ShorthandPropertyAssignment
- Parameter
level
:int
- Return
Node
pub fn getAnAncestorByLevel(self: ShorthandPropertyAssignment, level: int) -> Node;
ShorthandPropertyAssignment::getALeadingComment
/**
* Gets the leading comments of it
*/
- Parameter
self
:ShorthandPropertyAssignment
- Return
*Comment
pub fn getALeadingComment(self: ShorthandPropertyAssignment) -> *Comment;
ShorthandPropertyAssignment::getFile
/**
* Gets the file of this node.
*/
- Parameter
self
:ShorthandPropertyAssignment
- Return
File
pub fn getFile(self: ShorthandPropertyAssignment) -> File;
ShorthandPropertyAssignment::getAComment
/**
* Gets the comments related to it
*/
- Parameter
self
:ShorthandPropertyAssignment
- Return
*Comment
pub fn getAComment(self: ShorthandPropertyAssignment) -> *Comment;
ShorthandPropertyAssignment::getADecorator
/**
* Gets a decorator.
*/
- Parameter
self
:ShorthandPropertyAssignment
- Return
*Decorator
pub fn getADecorator(self: ShorthandPropertyAssignment) -> *Decorator;