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