ValueSpec

Inherit from Spec

Primary key: id: int

schema ValueSpec extends Spec {
  @primary id: int
}

ValueSpec::countAssociatedComment

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

ValueSpec::getParentNode

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

ValueSpec::getAssociatedCommentString

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

ValueSpec::isRootNode

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

ValueSpec::getTextStartOffset

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

ValueSpec::getAValueNodeByIdx

pub fn getAValueNodeByIdx(self: ValueSpec, id: int) -> *Node;

ValueSpec::getAValueByIdx

  • Parameter self: ValueSpec
  • Parameter id: int
  • Return *string
pub fn getAValueByIdx(self: ValueSpec, id: int) -> *string;

ValueSpec::getChildCount

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

ValueSpec::getTextSize

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

ValueSpec::getBelongsFile

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

ValueSpec::getSignature

pub fn getSignature(self: ValueSpec) -> *string;

ValueSpec::getAchildNode

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

ValueSpec::getAValueSpecName

pub fn getAValueSpecName(self: ValueSpec) -> *string;

ValueSpec::getLocation

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

ValueSpec::getAnAncestor

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

ValueSpec::getBelongsFunction

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

ValueSpec::isImportSpec

pub fn isImportSpec(self: ValueSpec) -> bool;

ValueSpec::getText

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

ValueSpec::hasUserInitValue

pub fn hasUserInitValue(self: ValueSpec) -> bool;

ValueSpec::getDepthFromRoot

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

ValueSpec::isValueSpec

pub fn isValueSpec(self: ValueSpec) -> bool;

ValueSpec::hasLocation

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

ValueSpec::getAValueSpecNameByIdx

  • Parameter self: ValueSpec
  • Parameter id: int
  • Return *string
pub fn getAValueSpecNameByIdx(self: ValueSpec, id: int) -> *string;

ValueSpec::isAliasSpec

pub fn isAliasSpec(self: ValueSpec) -> bool;

ValueSpec::getKind

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

ValueSpec::getType

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

ValueSpec::print

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

ValueSpec::getIdx

pub fn getIdx(self: ValueSpec) -> int;

ValueSpec::getAnAncestorForIndex

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

ValueSpec::__all__

Data constraint method.

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

ValueSpec::isTypedefSpec

pub fn isTypedefSpec(self: ValueSpec) -> bool;

ValueSpec::getAssociatedGenDecl

pub fn getAssociatedGenDecl(self: ValueSpec) -> Node;