ConstDecl

Inherit from Decl

Primary key: id: int

schema ConstDecl extends Decl {
  @primary id: int
}

ConstDecl::getParentNode

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

ConstDecl::isImportDecl

pub fn isImportDecl(self: ConstDecl) -> bool;

ConstDecl::getAssociatedCommentString

pub fn getAssociatedCommentString(self: ConstDecl) -> string;

ConstDecl::isRootNode

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

ConstDecl::getKind

pub fn getKind(self: ConstDecl) -> int;

ConstDecl::__all__

Data constraint method.

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

ConstDecl::isTypeDecl

pub fn isTypeDecl(self: ConstDecl) -> bool;

ConstDecl::getLocation

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

ConstDecl::isBadDecl

pub fn isBadDecl(self: ConstDecl) -> bool;

ConstDecl::isLocalVaribleDecl

pub fn isLocalVaribleDecl(self: ConstDecl) -> bool;

ConstDecl::getAchildNode

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

ConstDecl::countAssociatedComment

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

ConstDecl::getAnAncestor

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

ConstDecl::isConstDecl

pub fn isConstDecl(self: ConstDecl) -> bool;

ConstDecl::getAnAncestorForIndex

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

ConstDecl::print

pub fn print(self: ConstDecl) -> *string;

ConstDecl::getType

pub fn getType(self: ConstDecl) -> string;

ConstDecl::getBelongsFile

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

ConstDecl::isFuncDecl

pub fn isFuncDecl(self: ConstDecl) -> bool;

ConstDecl::getTextStartOffset

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

ConstDecl::getChildCount

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

ConstDecl::isVarDecl

pub fn isVarDecl(self: ConstDecl) -> bool;

ConstDecl::getTextSize

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

ConstDecl::getBelongsFunction

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

ConstDecl::getText

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

ConstDecl::getDepthFromRoot

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

ConstDecl::hasLocation

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