Statement

Inherit from Node

Primary key: id: int

schema Statement extends Node {
  @primary id: int
}

Statement::hasLocation

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

Statement::getAnAncestor

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

Statement::countAssociatedComment

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

Statement::getParentNode

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

Statement::getDepthFromRoot

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

Statement::getText

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

Statement::getAchildNode

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

Statement::getAssociatedCommentString

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

Statement::isFallthroughStmt

pub fn isFallthroughStmt(self: Statement) -> bool;

Statement::isBreakStmt

pub fn isBreakStmt(self: Statement) -> bool;

Statement::getBelongsFunction

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

Statement::isDeclStmt

pub fn isDeclStmt(self: Statement) -> bool;

Statement::getTextSize

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

Statement::isGoStmt

pub fn isGoStmt(self: Statement) -> bool;

Statement::isBlockStmt

pub fn isBlockStmt(self: Statement) -> bool;

Statement::isCaseClause

pub fn isCaseClause(self: Statement) -> bool;

Statement::isIncStmt

pub fn isIncStmt(self: Statement) -> bool;

Statement::isSelectStmt

pub fn isSelectStmt(self: Statement) -> bool;

Statement::isDeferStmt

pub fn isDeferStmt(self: Statement) -> bool;

Statement::isMulassignStmt

pub fn isMulassignStmt(self: Statement) -> bool;

Statement::isSendStmt

pub fn isSendStmt(self: Statement) -> bool;

Statement::isGotoStmt

pub fn isGotoStmt(self: Statement) -> bool;

Statement::isDefineStmt

pub fn isDefineStmt(self: Statement) -> bool;

Statement::isReturnStmt

pub fn isReturnStmt(self: Statement) -> bool;

Statement::isShlassignStmt

pub fn isShlassignStmt(self: Statement) -> bool;

Statement::isIfStmt

pub fn isIfStmt(self: Statement) -> bool;

Statement::getType

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

Statement::print

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

Statement::isContinueStmt

pub fn isContinueStmt(self: Statement) -> bool;

Statement::getIdx

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

Statement::isControlStmt

pub fn isControlStmt(self: Statement) -> bool;

Statement::getBelongsFile

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

Statement::isExprStmt

pub fn isExprStmt(self: Statement) -> bool;

Statement::isAndassignStmt

pub fn isAndassignStmt(self: Statement) -> bool;

Statement::getKind

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

Statement::isBadStmt

pub fn isBadStmt(self: Statement) -> bool;

Statement::isEmptyStmt

pub fn isEmptyStmt(self: Statement) -> bool;

Statement::getAnAncestorForIndex

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

Statement::isLabeledStmt

pub fn isLabeledStmt(self: Statement) -> bool;

Statement::isExprswitchStmt

pub fn isExprswitchStmt(self: Statement) -> bool;

Statement::getLocation

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

Statement::isQuoassignStmt

pub fn isQuoassignStmt(self: Statement) -> bool;

Statement::isRemassignStmt

pub fn isRemassignStmt(self: Statement) -> bool;

Statement::isRootNode

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

Statement::isCommClause

pub fn isCommClause(self: Statement) -> bool;

Statement::isForStmt

pub fn isForStmt(self: Statement) -> bool;

Statement::isShrassignStmt

pub fn isShrassignStmt(self: Statement) -> bool;

Statement::isAssignStmt

pub fn isAssignStmt(self: Statement) -> bool;

Statement::isRangeStmt

pub fn isRangeStmt(self: Statement) -> bool;

Statement::__all__

Data constraint method.

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

Statement::isOrassignStmt

pub fn isOrassignStmt(self: Statement) -> bool;

Statement::isAddassignStmt

pub fn isAddassignStmt(self: Statement) -> bool;

Statement::isSubassignStmt

pub fn isSubassignStmt(self: Statement) -> bool;

Statement::isXorassignStmt

pub fn isXorassignStmt(self: Statement) -> bool;

Statement::isAndnotassignStmt

pub fn isAndnotassignStmt(self: Statement) -> bool;

Statement::getTextStartOffset

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

Statement::isTypeswitchStmt

pub fn isTypeswitchStmt(self: Statement) -> bool;

Statement::isDecStmt

pub fn isDecStmt(self: Statement) -> bool;

Statement::getChildCount

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