Comment

Inherit from Node

Primary key: id: int

schema Comment extends Node {
  @primary id: int
}

Comment::hasLocation

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

Comment::getAnAncestorForIndex

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

Comment::getAnAncestor

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

Comment::getBelongsFunction

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

Comment::countAssociatedComment

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

Comment::getParentNode

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

Comment::isRootNode

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

Comment::getDepthFromRoot

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

Comment::print

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

Comment::getTextSize

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

Comment::getChildCount

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

Comment::getLocation

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

Comment::__all__

Data constraint method.

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

Comment::getTextStartOffset

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

Comment::getAssociatedCommentString

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

Comment::getAchildNode

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

Comment::getType

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

Comment::getText

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

Comment::getBelongsFile

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