Expr

Inherit from Node

Primary key: id: int

schema Expr extends Node {
  @primary id: int
}

Expr::getLocation

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

Expr::getAnAncestorForIndex

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

Expr::countAssociatedComment

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

Expr::isRootNode

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

Expr::getText

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

Expr::getAssociatedCommentString

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

Expr::getChildCount

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

Expr::getTextStartOffset

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

Expr::isSendrcvchantypeExpr

  • Parameter self: Expr
  • Return bool
pub fn isSendrcvchantypeExpr(self: Expr) -> bool;

Expr::isRecvchantypeExpr

  • Parameter self: Expr
  • Return bool
pub fn isRecvchantypeExpr(self: Expr) -> bool;

Expr::isSendchantypeExpr

  • Parameter self: Expr
  • Return bool
pub fn isSendchantypeExpr(self: Expr) -> bool;

Expr::isAndnotExpr

  • Parameter self: Expr
  • Return bool
pub fn isAndnotExpr(self: Expr) -> bool;

Expr::getDepthFromRoot

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

Expr::isAndExpr

  • Parameter self: Expr
  • Return bool
pub fn isAndExpr(self: Expr) -> bool;

Expr::isShrExpr

  • Parameter self: Expr
  • Return bool
pub fn isShrExpr(self: Expr) -> bool;

Expr::isRemExpr

  • Parameter self: Expr
  • Return bool
pub fn isRemExpr(self: Expr) -> bool;

Expr::isQuoExpr

  • Parameter self: Expr
  • Return bool
pub fn isQuoExpr(self: Expr) -> bool;

Expr::isOrExpr

  • Parameter self: Expr
  • Return bool
pub fn isOrExpr(self: Expr) -> bool;

Expr::getAnAncestor

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

Expr::isAddExpr

  • Parameter self: Expr
  • Return bool
pub fn isAddExpr(self: Expr) -> bool;

Expr::isMulExpr

  • Parameter self: Expr
  • Return bool
pub fn isMulExpr(self: Expr) -> bool;

Expr::isLssExpr

  • Parameter self: Expr
  • Return bool
pub fn isLssExpr(self: Expr) -> bool;

Expr::isNeqExpr

  • Parameter self: Expr
  • Return bool
pub fn isNeqExpr(self: Expr) -> bool;

Expr::isEqlExpr

  • Parameter self: Expr
  • Return bool
pub fn isEqlExpr(self: Expr) -> bool;

Expr::isLandExpr

  • Parameter self: Expr
  • Return bool
pub fn isLandExpr(self: Expr) -> bool;

Expr::isImagLit

  • Parameter self: Expr
  • Return bool
pub fn isImagLit(self: Expr) -> bool;

Expr::hasLocation

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

Expr::isGeqExpr

  • Parameter self: Expr
  • Return bool
pub fn isGeqExpr(self: Expr) -> bool;

Expr::isStructtypeExpr

  • Parameter self: Expr
  • Return bool
pub fn isStructtypeExpr(self: Expr) -> bool;

Expr::isFunctypeExpr

  • Parameter self: Expr
  • Return bool
pub fn isFunctypeExpr(self: Expr) -> bool;

Expr::isStarExpr

  • Parameter self: Expr
  • Return bool
pub fn isStarExpr(self: Expr) -> bool;

Expr::getExprTypeName

  • Parameter self: Expr
  • Return *string
pub fn getExprTypeName(self: Expr) -> *string;

Expr::isFloatLit

  • Parameter self: Expr
  • Return bool
pub fn isFloatLit(self: Expr) -> bool;

Expr::getParentNode

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

Expr::isEllipsis

  • Parameter self: Expr
  • Return bool
pub fn isEllipsis(self: Expr) -> bool;

Expr::isCharLit

  • Parameter self: Expr
  • Return bool
pub fn isCharLit(self: Expr) -> bool;

Expr::isBadExpr

  • Parameter self: Expr
  • Return bool
pub fn isBadExpr(self: Expr) -> bool;

Expr::isKeyvalueExpr

  • Parameter self: Expr
  • Return bool
pub fn isKeyvalueExpr(self: Expr) -> bool;

Expr::isFuncLit

  • Parameter self: Expr
  • Return bool
pub fn isFuncLit(self: Expr) -> bool;

Expr::getDebugInfo

  • Parameter self: Expr
  • Return string
pub fn getDebugInfo(self: Expr) -> string;

Expr::getSignature

  • Parameter self: Expr
  • Return *string
pub fn getSignature(self: Expr) -> *string;

Expr::isControlExpr

// Any of ['||', '&&']
  • Parameter self: Expr
  • Return bool
pub fn isControlExpr(self: Expr) -> bool;

Expr::isSubExpr

  • Parameter self: Expr
  • Return bool
pub fn isSubExpr(self: Expr) -> bool;

Expr::isSelectorExpr

  • Parameter self: Expr
  • Return bool
pub fn isSelectorExpr(self: Expr) -> bool;

Expr::__all__

Data constraint method.

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

Expr::isGenerictypeinstantiationExpr

  • Parameter self: Expr
  • Return bool
pub fn isGenerictypeinstantiationExpr(self: Expr) -> bool;

Expr::isGtrExpr

  • Parameter self: Expr
  • Return bool
pub fn isGtrExpr(self: Expr) -> bool;

Expr::isStringLit

  • Parameter self: Expr
  • Return bool
pub fn isStringLit(self: Expr) -> bool;

Expr::getBelongsStmt

pub fn getBelongsStmt(self: Expr) -> Statement;

Expr::isBasicLitExpr

  • Parameter self: Expr
  • Return bool
pub fn isBasicLitExpr(self: Expr) -> bool;

Expr::isCompositeLit

  • Parameter self: Expr
  • Return bool
pub fn isCompositeLit(self: Expr) -> bool;

Expr::isIntLit

  • Parameter self: Expr
  • Return bool
pub fn isIntLit(self: Expr) -> bool;

Expr::isMinusExpr

  • Parameter self: Expr
  • Return bool
pub fn isMinusExpr(self: Expr) -> bool;

Expr::isLorExpr

  • Parameter self: Expr
  • Return bool
pub fn isLorExpr(self: Expr) -> bool;

Expr::getType

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

Expr::getIdx

  • Parameter self: Expr
  • Return int
pub fn getIdx(self: Expr) -> int;

Expr::getBasicLitValue

  • Parameter self: Expr
  • Return string
pub fn getBasicLitValue(self: Expr) -> string;

Expr::isDerefExpr

  • Parameter self: Expr
  • Return bool
pub fn isDerefExpr(self: Expr) -> bool;

Expr::getTextSize

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

Expr::isIdent

  • Parameter self: Expr
  • Return bool
pub fn isIdent(self: Expr) -> bool;

Expr::getKind

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

Expr::isParenExpr

  • Parameter self: Expr
  • Return bool
pub fn isParenExpr(self: Expr) -> bool;

Expr::isSliceExpr

  • Parameter self: Expr
  • Return bool
pub fn isSliceExpr(self: Expr) -> bool;

Expr::print

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

Expr::isShlExpr

  • Parameter self: Expr
  • Return bool
pub fn isShlExpr(self: Expr) -> bool;

Expr::isIndexExpr

  • Parameter self: Expr
  • Return bool
pub fn isIndexExpr(self: Expr) -> bool;

Expr::isXorExpr

  • Parameter self: Expr
  • Return bool
pub fn isXorExpr(self: Expr) -> bool;

Expr::isUnaryExpr

// Any of ['+','-','!','^','*','&','->' ]
  • Parameter self: Expr
  • Return bool
pub fn isUnaryExpr(self: Expr) -> bool;

Expr::isGenericfunctioninstantiationExpr

  • Parameter self: Expr
  • Return bool
pub fn isGenericfunctioninstantiationExpr(self: Expr) -> bool;

Expr::isCallorconversionExpr

  • Parameter self: Expr
  • Return bool
pub fn isCallorconversionExpr(self: Expr) -> bool;

Expr::isLeqExpr

  • Parameter self: Expr
  • Return bool
pub fn isLeqExpr(self: Expr) -> bool;

Expr::isBinaryExpr

// Any of ['||', '&&', '==', '!=', '<', '<=', '>', '+', '-', '|', '^', '*', '/', '%', '<<', '>>', '&', '&^' ]
  • Parameter self: Expr
  • Return bool
pub fn isBinaryExpr(self: Expr) -> bool;

Expr::getAChildByIdx

  • Parameter self: Expr
  • Parameter idx: int
  • Return *Node
pub fn getAChildByIdx(self: Expr, idx: int) -> *Node;

Expr::isTypeassertExpr

  • Parameter self: Expr
  • Return bool
pub fn isTypeassertExpr(self: Expr) -> bool;

Expr::getBelongsFunction

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

Expr::isArraytypeExpr

  • Parameter self: Expr
  • Return bool
pub fn isArraytypeExpr(self: Expr) -> bool;

Expr::isInterfacetypeExpr

  • Parameter self: Expr
  • Return bool
pub fn isInterfacetypeExpr(self: Expr) -> bool;

Expr::isPlusExpr

  • Parameter self: Expr
  • Return bool
pub fn isPlusExpr(self: Expr) -> bool;

Expr::isNotExpr

  • Parameter self: Expr
  • Return bool
pub fn isNotExpr(self: Expr) -> bool;

Expr::isMaptypeExpr

  • Parameter self: Expr
  • Return bool
pub fn isMaptypeExpr(self: Expr) -> bool;

Expr::isTypesetliteralExpr

  • Parameter self: Expr
  • Return bool
pub fn isTypesetliteralExpr(self: Expr) -> bool;

Expr::getBelongsFile

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

Expr::isComplementExpr

  • Parameter self: Expr
  • Return bool
pub fn isComplementExpr(self: Expr) -> bool;

Expr::getAchildNode

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

Expr::isAddressExpr

  • Parameter self: Expr
  • Return bool
pub fn isAddressExpr(self: Expr) -> bool;

Expr::isArrowExpr

  • Parameter self: Expr
  • Return bool
pub fn isArrowExpr(self: Expr) -> bool;