CodeQL library for Ruby
codeql/ruby-all 7.1.1 (changelog, source)
Search

Class ExprNodes::InstanceVariableWriteAccessCfgNode

A control-flow node that wraps an InstanceVariableWriteAccess AST expression.

Import path

import codeql.ruby.controlflow.CfgNodes

Direct supertypes

Indirect supertypes

Known direct subtypes

    Inherited fields

    Predicates

    getAPrimaryQlClass

    Gets the name of the primary QL class for this node.

    getExpr

    Gets the underlying expression.

    Inherited predicates

    asExpr

    Gets the expression this control flow node uniquely represents, if any.

    from NodeImpl
    asStmt

    Gets the statement this control flow node uniquely represents, if any.

    from NodeImpl
    dominates

    Holds if this node dominates that node.

    from ControlFlowNode
    getANormalSuccessor

    Gets a normal successor of this node, if any. This includes direct successors and conditional successors.

    from ControlFlowNode
    getAPredecessor

    Gets an immediate predecessor, if any.

    from CfgNode
    getAPredecessor

    Gets an immediate predecessor node of a given flow type, if any.

    from CfgNode
    getASuccessor

    Gets an immediate successor, if any.

    from CfgNode
    getASuccessor

    Gets a successor node of a given type, if any.

    from CfgNode
    getAnExceptionSuccessor

    Gets an exception successor of this node, if any.

    from ControlFlowNode
    getAstNode

    Gets the AST node with which this control flow node is associated. Note that several control flow nodes are usually associated with the same AST node, but each control flow node is associated with a unique AST node.

    from AstCfgNode
    getBasicBlock

    Gets the basic block containing this control flow node.

    from ControlFlowNode
    getConstantValue

    Gets the constant value of this expression, if any.

    from ExprCfgNode
    getEnclosingCallable

    Gets the enclosing callable of this control flow node.

    from NodeImpl
    getIdTag

    INTERNAL: Do not use.

    from NodeImpl
    getLocation

    Gets the source location for this node.

    from NodeImpl
    getReceiver

    Gets the synthetic receiver (self) of this instance variable access.

    from InstanceVariableAccessCfgNode
    injects

    Holds if this is the unique control flow node that represents the given AST node.

    from NodeImpl
    isAdditional

    Holds if this is an additional control flow node with the given tag for the given AST node.

    from NodeImpl
    isAfter

    Holds if this is a node representing the point in the control flow after the normal termination of n. For simple leaf nodes, this is merged with the “before” node and is hence equal to it. For nodes in conditional contexts, this may be one of two possible “after” nodes representing the different possible values of n.

    from NodeImpl
    isAfterFalse

    Holds if this node indicates that n evaluates to the value false.

    from ControlFlowNode
    isAfterTrue

    Holds if this node indicates that n evaluates to the value true.

    from ControlFlowNode
    isAfterValue

    Holds if this node indicates that n evaluates to the value t.

    from ControlFlowNode
    isBefore

    Holds if this is the node representing the point in the control flow before the execution of n.

    from NodeImpl
    isIn

    Holds if this is the node representing the given AST node when n has an in-order or post-order execution.

    from NodeImpl
    postDominates

    Holds if this node post-dominates that node.

    from ControlFlowNode
    strictlyDominates

    Holds if this node strictly dominates that node.

    from ControlFlowNode
    strictlyPostDominates

    Holds if this node strictly post-dominates that node.

    from ControlFlowNode
    toString

    Gets a textual representation of this node.

    from NodeImpl

    Charpred