MethodElement

/**
* A MethodElement
*/

Inherit from ClassElement

Primary key: id: int

schema MethodElement extends ClassElement {
  @primary id: int
}

MethodElement::getSymbol

/**
* Gets the symbol associated with this node.
*/
pub fn getSymbol(self: MethodElement) -> Symbol;

MethodElement::getAnAncestorEnclosingFunction

/**
* Gets an ancestor enclosing function of it
*/
pub fn getAnAncestorEnclosingFunction(self: MethodElement) -> *FunctionLikeDeclaration;

MethodElement::getIndex

pub fn getIndex(self: MethodElement) -> int;

MethodElement::getParentOid

/**
* Gets the parent oid of this node.
*/
pub fn getParentOid(self: MethodElement) -> int;

MethodElement::getRelativePath

/**
* Gets the relative path of this node.
*/
pub fn getRelativePath(self: MethodElement) -> string;

MethodElement::getLastChild

/**
* Gets the last child of this node parent.
*/
pub fn getLastChild(self: MethodElement) -> Node;

MethodElement::getEndColumnNumber

pub fn getEndColumnNumber(self: MethodElement) -> int;

MethodElement::getParent

/**
* Gets the parent node of this node.
*/
pub fn getParent(self: MethodElement) -> Node;

MethodElement::getChildCount

/**
* Gets the number of child nodes.
*/
pub fn getChildCount(self: MethodElement) -> int;

MethodElement::getDecorator

/**
* Gets the `i`th decorator.
*/
pub fn getDecorator(self: MethodElement, i: int) -> Decorator;

MethodElement::getEndLineNumber

pub fn getEndLineNumber(self: MethodElement) -> int;

MethodElement::getATrailingComment

/**
* Gets the trailing comments of it
*/
pub fn getATrailingComment(self: MethodElement) -> *Comment;

MethodElement::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.
*/
pub fn getAnAncestorByLevel(self: MethodElement, level: int) -> Node;

MethodElement::getChild

/**
* Gets the `i`th child of this node.
*/
pub fn getChild(self: MethodElement, i: int) -> Node;

MethodElement::getRoot

/**
* Gets the root top-level of this node. 
*/
pub fn getRoot(self: MethodElement) -> TopLevelDO;

MethodElement::getAChild

/**
* Gets a child node of this node.
*/
pub fn getAChild(self: MethodElement) -> *Node;

MethodElement::getStartColumnNumber

pub fn getStartColumnNumber(self: MethodElement) -> int;

MethodElement::getStartLineNumber

pub fn getStartLineNumber(self: MethodElement) -> int;

MethodElement::__all__

Data constraint method.

pub fn __all__(db: JavascriptDB) -> *MethodElement;

MethodElement::getLocation

/**
* Gets the location of this node.
*/
pub fn getLocation(self: MethodElement) -> Location;

MethodElement::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.
*/
pub fn getADescendantByLevel(self: MethodElement, level: int) -> *Node;

MethodElement::getKind

/**
* Get the syntax kind of this node
*/
pub fn getKind(self: MethodElement) -> int;

MethodElement::getAModifier

/**
* Gets a modifier.
*/
pub fn getAModifier(self: MethodElement) -> *Modifier;

MethodElement::getAnAncestor

/**
* Gets an ancestor of this node. 
*/
pub fn getAnAncestor(self: MethodElement) -> *Node;

MethodElement::getEnclosingFunction

/**
* Gets the enclosing function of it
*/
pub fn getEnclosingFunction(self: MethodElement) -> FunctionLikeDeclaration;

MethodElement::getADescendant

/**
* Gets a descendant of this node. 
*/
pub fn getADescendant(self: MethodElement) -> *Node;

MethodElement::getALeadingComment

/**
* Gets the leading comments of it
*/
pub fn getALeadingComment(self: MethodElement) -> *Comment;

MethodElement::getFile

/**
* Gets the file of this node.
*/
pub fn getFile(self: MethodElement) -> File;

MethodElement::getModifier

/**
* Gets the `i`th modifier.
*/
pub fn getModifier(self: MethodElement, i: int) -> Modifier;

MethodElement::getText

/**
* Gets the text of this node.
*/
pub fn getText(self: MethodElement) -> string;

MethodElement::getAComment

/**
* Gets the comments related to it
*/
pub fn getAComment(self: MethodElement) -> *Comment;

MethodElement::getADecorator

/**
* Gets a decorator.
*/
pub fn getADecorator(self: MethodElement) -> *Decorator;