A simple assignment statement, that is, an assignment without a compound operator.
x := 1
*p = f()
a[i] = 23
(k) = <-ch // same as: k = <-ch
Gets the name of a primary CodeQL class to which this node belongs.
Holds if this assignment assigns
Gets a child node of this node.
Gets an expression that is a child node of this node in the AST.
Gets a statement that is a child node of this node in the AST.
Gets a left-hand side of this assignment.
Gets a right-hand side of this assignment.
Gets the innermost function definition to which this AST node belongs, if any.
Gets the file this program element comes from.
Gets the first control-flow node in this statement.
Gets the kind of this statement, which is an integer value representing the statement’s node type.
Gets the unique left-hand side of this assignment, if there is only one.
Gets this element’s location.
Gets the number of child nodes of this node.
Gets the number of child expressions of this node.
Gets the number of child statements of this node.
Gets the number of left-hand sides of this assignment.
Gets the number of lines covered by this element.
Gets the number of right-hand sides of this assignment.
Gets the assignment operator in this statement.
Gets the parent node of this AST node, if any.
Gets a comma-separated list of the names of the primary CodeQL classes to which this element belongs.
Gets the unique right-hand side of this assignment, if there is only one.
Get an AstNode child, ordered by child kind and then by index.
Holds if this element is at the specified location. The location spans column
Holds if the execution of this statement may produce observable side effects.
Gets a textual representation of this element.