Method

Inherit from Function

Primary key: id: int

schema Method extends Function {
  @primary id: int
}

Method::getFunctionTypeSignature

  • Parameter self: Method
  • Return string
pub fn getFunctionTypeSignature(self: Method) -> string;

Method::getCyclomaticComplexity

  • Parameter self: Method
  • Return int
pub fn getCyclomaticComplexity(self: Method) -> int;

Method::getFunctionReceiverType

  • Parameter self: Method
  • Return string
pub fn getFunctionReceiverType(self: Method) -> string;

Method::isMethod

  • Parameter self: Method
  • Return bool
pub fn isMethod(self: Method) -> bool;

Method::getGlobalSignature

  • Parameter self: Method
  • Return string
pub fn getGlobalSignature(self: Method) -> string;

Method::getFunctionReceiverInfo

  • Parameter self: Method
  • Return string
pub fn getFunctionReceiverInfo(self: Method) -> string;

Method::getAParameter

pub fn getAParameter(self: Method) -> *Node;

Method::getParamsField

  • Parameter self: Method
  • Return *string
pub fn getParamsField(self: Method) -> *string;

Method::getAResult

pub fn getAResult(self: Method) -> *Node;

Method::isPublicFunction

  • Parameter self: Method
  • Return bool
pub fn isPublicFunction(self: Method) -> bool;

Method::getCommentCnt

  • Parameter self: Method
  • Return int
pub fn getCommentCnt(self: Method) -> int;

Method::getText

// getText Extract the text associated with a specific node in a file
  • Parameter self: Method
  • Return string
pub fn getText(self: Method) -> string;

Method::getBelongsFunction

pub fn getBelongsFunction(self: Method) -> Function;

Method::isCommented

  • Parameter self: Method
  • Return bool
pub fn isCommented(self: Method) -> bool;

Method::getAnAncestor

pub fn getAnAncestor(self: Method) -> *Node;

Method::getAssociatedComment

  • Parameter self: Method
  • Return string
pub fn getAssociatedComment(self: Method) -> string;

Method::isRootNode

  • Parameter self: Method
  • Return bool
pub fn isRootNode(self: Method) -> bool;

Method::getBelongsFile

pub fn getBelongsFile(self: Method) -> File;

Method::getMethodReceiverName

  • Parameter self: Method
  • Return string
pub fn getMethodReceiverName(self: Method) -> string;

Method::getFunctionFullSignature

  • Parameter self: Method
  • Return string
pub fn getFunctionFullSignature(self: Method) -> string;

Method::__all__

Data constraint method.

pub fn __all__(db: GoDB) -> *Method;

Method::getLocation

pub fn getLocation(self: Method) -> Location;

Method::getMethodReceiverType

  • Parameter self: Method
  • Return string
pub fn getMethodReceiverType(self: Method) -> string;

Method::getAchildNode

pub fn getAchildNode(self: Method) -> *Node;

Method::getDepthFromRoot

  • Parameter self: Method
  • Return int
pub fn getDepthFromRoot(self: Method) -> int;

Method::hasLocation

  • Parameter self: Method
  • Return bool
pub fn hasLocation(self: Method) -> bool;

Method::getIdx

  • Parameter self: Method
  • Return int
pub fn getIdx(self: Method) -> int;

Method::getAnAncestorForIndex

  • Parameter self: Method
  • Parameter index: int
  • Return Node
pub fn getAnAncestorForIndex(self: Method, index: int) -> Node;

Method::getParentNode

pub fn getParentNode(self: Method) -> Node;

Method::getAssociatedCommentString

  • Parameter self: Method
  • Return string
pub fn getAssociatedCommentString(self: Method) -> string;

Method::getTextSize

  • Parameter self: Method
  • Return int
pub fn getTextSize(self: Method) -> int;

Method::getChildCount

  • Parameter self: Method
  • Return int
pub fn getChildCount(self: Method) -> int;

Method::getTextStartOffset

  • Parameter self: Method
  • Return int
pub fn getTextStartOffset(self: Method) -> int;

Method::getType

  • Parameter self: Method
  • Return string
pub fn getType(self: Method) -> string;

Method::print

  • Parameter self: Method
  • Return *string
pub fn print(self: Method) -> *string;

Method::getName

  • Parameter self: Method
  • Return string
pub fn getName(self: Method) -> string;

Method::countAssociatedComment

  • Parameter self: Method
  • Return int
pub fn countAssociatedComment(self: Method) -> int;

Method::getResultsField

  • Parameter self: Method
  • Return *string
pub fn getResultsField(self: Method) -> *string;

Method::getFunctionSignature

  • Parameter self: Method
  • Return string
pub fn getFunctionSignature(self: Method) -> string;