Node

Primary key: id: int

schema Node { @primary id: int } 

Node::print

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

Node::getTextStartOffset

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

Node::getChildCount

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

Node::getTextSize

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

Node::getAssociatedCommentString

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

Node::getAchildNode

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

Node::getText

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

Node::getType

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

Node::getBelongsFile

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

Node::getDepthFromRoot

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

Node::isRootNode

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

Node::getParentNode

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

Node::countAssociatedComment

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

Node::getBelongsFunction

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

Node::getAnAncestor

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

Node::getAnAncestorForIndex

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

Node::hasLocation

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

Node::__all__

Data constraint method.

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

Node::getLocation

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