TypeSpec

Inherit from Spec

Primary key: id: int

schema TypeSpec extends Spec {
  @primary id: int
}

TypeSpec::getBelongsFunction

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

TypeSpec::isImportSpec

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

TypeSpec::getText

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

TypeSpec::countAssociatedComment

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

TypeSpec::getKind

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

TypeSpec::isAliasSpec

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

TypeSpec::print

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

TypeSpec::getType

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

TypeSpec::getBelongsFile

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

TypeSpec::getLocation

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

TypeSpec::getIdx

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

TypeSpec::getAnAncestorForIndex

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

TypeSpec::getAchildNode

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

TypeSpec::getAnAncestor

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

TypeSpec::getTypeSpecName

  • Parameter self: TypeSpec
  • Return string
pub fn getTypeSpecName(self: TypeSpec) -> string;

TypeSpec::getTextStartOffset

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

TypeSpec::__all__

Data constraint method.

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

TypeSpec::isTypedefSpec

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

TypeSpec::getAssociatedGenDecl

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

TypeSpec::getChildCount

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

TypeSpec::getTextSize

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

TypeSpec::isValueSpec

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

TypeSpec::hasLocation

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

TypeSpec::getDepthFromRoot

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

TypeSpec::isRootNode

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

TypeSpec::getAssociatedCommentString

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

TypeSpec::getParentNode

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