Decl

Inherit from Node

Primary key: id: int

schema Decl extends Node {
  @primary id: int
}

Decl::getAnAncestorForIndex

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

Decl::getAnAncestor

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

Decl::countAssociatedComment

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

Decl::getLocation

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

Decl::isTypeDecl

  • Parameter self: Decl
  • Return bool
pub fn isTypeDecl(self: Decl) -> bool;

Decl::getKind

  • Parameter self: Decl
  • Return int
pub fn getKind(self: Decl) -> int;

Decl::isConstDecl

  • Parameter self: Decl
  • Return bool
pub fn isConstDecl(self: Decl) -> bool;

Decl::isLocalVaribleDecl

  • Parameter self: Decl
  • Return bool
pub fn isLocalVaribleDecl(self: Decl) -> bool;

Decl::getAchildNode

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

Decl::print

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

Decl::getType

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

Decl::getBelongsFile

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

Decl::__all__

Data constraint method.

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

Decl::isBadDecl

  • Parameter self: Decl
  • Return bool
pub fn isBadDecl(self: Decl) -> bool;

Decl::isFuncDecl

  • Parameter self: Decl
  • Return bool
pub fn isFuncDecl(self: Decl) -> bool;

Decl::getTextStartOffset

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

Decl::getChildCount

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

Decl::isVarDecl

  • Parameter self: Decl
  • Return bool
pub fn isVarDecl(self: Decl) -> bool;

Decl::getTextSize

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

Decl::getText

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

Decl::getBelongsFunction

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

Decl::hasLocation

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

Decl::getDepthFromRoot

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

Decl::isRootNode

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

Decl::getAssociatedCommentString

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

Decl::isImportDecl

  • Parameter self: Decl
  • Return bool
pub fn isImportDecl(self: Decl) -> bool;

Decl::getParentNode

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