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