Gets a child node of this node.
from AstNode getAChildExprGets an expression that is a child node of this node in the AST.
from ExprParent getAnElementGets an element of this composite literal.
from CompositeLit getBoolValueGets the boolean value this expression evalutes to, if any.
from Expr getChildGets the i
th child node of this node.
Gets the i
th child expression of this node.
Gets the i
th element of this composite literal (0-based).
Gets the innermost function definition to which this AST node belongs, if any.
from AstNode getExactValueGets the string representation of the exact value this expression evaluates to, if any.
from Expr getFileGets the file this program element comes from.
from Locatable getFloatValueGets the floating-point value this expression evaluates to, if any.
from Expr getGlobalValueNumberGets the global value number of this expression.
from Expr getIntValueGets the integer value this expression evaluates to, if any.
from Expr getKeyGets the i
th key expression in this literal.
Gets the kind of this expression, which is an integer value representing the expression’s node type.
from Expr getLocationGets this element’s location.
from Locatable getNumChildGets the number of child nodes of this node.
from AstNode getNumChildExprGets the number of child expressions of this node.
from ExprParent getNumElementGets the number of elements in this composite literal.
from CompositeLit getNumLinesGets the number of lines covered by this element.
from Locatable getNumericValueGets either getFloatValue
or getIntValue
.
Gets the parent node of this AST node, if any.
from AstNode getPrimaryQlClassesGets a comma-separated list of the names of the primary CodeQL classes to which this element belongs.
from AstNode getStringValueGets the string value this expression evaluates to, if any.
from Expr getTypeGets the type of this expression.
from Expr getTypeExprGets the expression representing the type of this composite literal.
from CompositeLit getUniquelyNumberedChildGet an AstNode child, ordered by child kind and then by index.
from AstNode getValueGets the i
th value expression in this literal.
Holds if the complex value this expression evaluates to has real part real
and imaginary part imag
.
Holds if this element is at the specified location. The location spans column startcolumn
of line startline
to column endcolumn
of line endline
in file filepath
. For more information, see Locations.
Holds if this expression is constant, that is, if its value is determined at compile-time.
from Expr isPlatformIndependentConstantHolds if this expression has a constant value which is guaranteed not to depend on the platform where it is evaluated.
from Expr mayHaveOwnSideEffectsHolds if this expression may have observable side effects of its own (that is, independent of whether its sub-expressions may have side effects).
from Expr mayHaveSideEffectsHolds if the evaluation of this expression may produce observable side effects.
from Expr stripParensGets this expression, with any surrounding parentheses removed.
from ExprRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4