Function

Inherit from Node

Primary key: id: int

schema Function extends Node { @primary id: int } 

Function::getLocation

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

Function::getAnAncestorForIndex

pub fn getAnAncestorForIndex(self: Function, index: int) -> Node; 

Function::isRootNode

pub fn isRootNode(self: Function) -> bool; 

Function::hasLocation

pub fn hasLocation(self: Function) -> bool; 

Function::getDepthFromRoot

pub fn getDepthFromRoot(self: Function) -> int; 

Function::getBelongsFile

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

Function::getAchildNode

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

Function::getParentNode

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

Function::getAssociatedCommentString

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

Function::getTextSize

pub fn getTextSize(self: Function) -> int; 

Function::getChildCount

pub fn getChildCount(self: Function) -> int; 

Function::getTextStartOffset

pub fn getTextStartOffset(self: Function) -> int; 

Function::getType

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

Function::print

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

Function::countAssociatedComment

pub fn countAssociatedComment(self: Function) -> int; 

Function::getName

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

Function::getResultsField

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

Function::getFunctionSignature

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

Function::getAssociatedComment

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

Function::getAnAncestor

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

Function::isCommented

pub fn isCommented(self: Function) -> bool; 

Function::getBelongsFunction

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

Function::getText

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

Function::getCommentCnt

pub fn getCommentCnt(self: Function) -> int; 

Function::isPublicFunction

pub fn isPublicFunction(self: Function) -> bool; 

Function::getAResult

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

Function::getParamsField

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

Function::getAParameter

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

Function::getFunctionReceiverInfo

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

Function::getGlobalSignature

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

Function::__all__

Data constraint method.

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

Function::getFunctionFullSignature

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

Function::isMethod

pub fn isMethod(self: Function) -> bool; 

Function::getFunctionReceiverType

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

Function::getCyclomaticComplexity

pub fn getCyclomaticComplexity(self: Function) -> int; 

Function::getFunctionTypeSignature

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