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