MethodDeclaration

/** * A MethodDeclaration. */ 

Inherit from FunctionLikeDeclaration

Primary key: id: int

schema MethodDeclaration extends FunctionLikeDeclaration { @primary id: int } 

MethodDeclaration::getText

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

MethodDeclaration::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: MethodDeclaration, level: int) -> *Node; 

MethodDeclaration::getLocation

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

MethodDeclaration::getFile

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

MethodDeclaration::getADecorator

/** * Gets a decorator of this FunctionLikeDeclaration. */ 
pub fn getADecorator(self: MethodDeclaration) -> *Decorator; 

MethodDeclaration::getALeadingComment

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

MethodDeclaration::getADescendant

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

MethodDeclaration::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: MethodDeclaration, level: int) -> Node; 

MethodDeclaration::getKind

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

MethodDeclaration::getAModifier

/** * Gets a modifier of this FunctionLikeDeclaration. */ 
pub fn getAModifier(self: MethodDeclaration) -> *Modifier; 

MethodDeclaration::getAComment

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

MethodDeclaration::getTypeParameterCount

/** * Gets the count of type parameters. */ 
pub fn getTypeParameterCount(self: MethodDeclaration) -> int; 

MethodDeclaration::getBody

/** * Gets the body of this function-like declaration */ 
pub fn getBody(self: MethodDeclaration) -> BlockStatement; 

MethodDeclaration::getATypeParameter

/** * Gets a type parameter. */ 
pub fn getATypeParameter(self: MethodDeclaration) -> *TypeParameter; 

MethodDeclaration::getParameterFirstIndex

pub fn getParameterFirstIndex(self: MethodDeclaration) -> int; 

MethodDeclaration::__all__

Data constraint method.

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

MethodDeclaration::hasParameter

/** * Determine this FunctionLikeDeclaration contains any parameter. */ 
pub fn hasParameter(self: MethodDeclaration) -> bool; 

MethodDeclaration::getSymbol

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

MethodDeclaration::getAnAncestorEnclosingFunction

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

MethodDeclaration::getTypeParameter

/** * Gets the `i`th type parameter. */ 
pub fn getTypeParameter(self: MethodDeclaration, i: int) -> TypeParameter; 

MethodDeclaration::getIndex

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

MethodDeclaration::isGenerator

/** * Determines whether this FunctionLikeDeclaration is a generator. */ 
pub fn isGenerator(self: MethodDeclaration) -> bool; 

MethodDeclaration::getAParameter

/** * Gets a parameter. */ 
pub fn getAParameter(self: MethodDeclaration) -> *Parameter; 

MethodDeclaration::getEnclosingFunction

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

MethodDeclaration::getRelativePath

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

MethodDeclaration::getParameterCount

/** * Gets the count of parameters. */ 
pub fn getParameterCount(self: MethodDeclaration) -> int; 

MethodDeclaration::getTypeNode

/** * Gets the type node. */ 
pub fn getTypeNode(self: MethodDeclaration) -> TypeNode; 

MethodDeclaration::getLastChild

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

MethodDeclaration::getParent

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

MethodDeclaration::getEndColumnNumber

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

MethodDeclaration::getDecorator

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

MethodDeclaration::getDecoratorCount

/** * Gets the number of decorators of this FunctionLikeDeclaration. */ 
pub fn getDecoratorCount(self: MethodDeclaration) -> int; 

MethodDeclaration::getName

pub fn getName(self: MethodDeclaration) -> string; 

MethodDeclaration::getParameter

/** * Gets the `i`th parameter. */ 
pub fn getParameter(self: MethodDeclaration, i: int) -> Parameter; 

MethodDeclaration::getParentOid

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

MethodDeclaration::getAReturnStatement

pub fn getAReturnStatement(self: MethodDeclaration) -> *ReturnStatement; 

MethodDeclaration::getATrailingComment

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

MethodDeclaration::getAnAncestor

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

MethodDeclaration::getChild

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

MethodDeclaration::getACallSite

/** * Gets a call site of this function-like declaration */ 
pub fn getACallSite(self: MethodDeclaration) -> *MayInvokeExpression; 

MethodDeclaration::getModifier

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

MethodDeclaration::getTypeParameterFirstIndex

pub fn getTypeParameterFirstIndex(self: MethodDeclaration) -> int; 

MethodDeclaration::getModifierCount

/** * Gets the number of modifiers of this FunctionLikeDeclaration. */ 
pub fn getModifierCount(self: MethodDeclaration) -> int; 

MethodDeclaration::getCyclomaticComplexity

/** * Gets the cyclomatic complexity of this function-like declaration */ 
pub fn getCyclomaticComplexity(self: MethodDeclaration) -> int; 

MethodDeclaration::getRoot

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

MethodDeclaration::getNameNode

/** * Gets the name node, which is a PropertyName. */ 
pub fn getNameNode(self: MethodDeclaration) -> PropertyName; 

MethodDeclaration::getChildCount

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

MethodDeclaration::getAReturnedExpression

pub fn getAReturnedExpression(self: MethodDeclaration) -> *Expression; 

MethodDeclaration::getAChild

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

MethodDeclaration::getStartColumnNumber

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

MethodDeclaration::getStartLineNumber

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

MethodDeclaration::getEndLineNumber

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