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

Class DataFlow::SetterCallNode

A call to a setter method.

For example,

self.foo = 10
a[0] = 10

Import path

import ruby

Direct supertypes

Indirect supertypes

Known direct subtypes

    Predicates

    getTargetName

    Gets the name of the method being called without the trailing =. For example, in the following two statements the target name is value: rb foo.value=(1) foo.value = 1

    Inherited predicates

    asCallable

    Gets the callable corresponding to this block, lambda expression, or call to proc or lambda.

    from Node
    asExpr

    Gets the expression corresponding to this node, if any.

    from Node
    asParameter

    Gets the parameter corresponding to this node, if any.

    from Node
    backtrack

    Gets a node that may flow into this one using one heap and/or interprocedural step.

    from LocalSourceNode
    backtrack

    Starts backtracking from this node using API graphs.

    from Node
    flowsTo

    Holds if this LocalSourceNode can flow to nodeTo in one or more local flow steps.

    from LocalSourceNode
    getALocalSource

    Gets a local source node from which data may flow to this node in zero or more local data-flow steps.

    from Node
    getALocalUse

    Gets a node to which data may flow from this node in zero or more local data-flow steps.

    from LocalSourceNode
    getAMethodCall

    Gets a method call where this node flows to the receiver.

    from LocalSourceNode
    getAMethodCall

    Gets a call to a method named name, where this node flows to the receiver.

    from LocalSourceNode
    getAPredecessor

    Gets a data flow node from which data may flow to this node in one local step.

    from Node
    getASuccessor

    Gets a data flow node to which data may flow from this node in one local step.

    from Node
    getATarget

    Gets a potential target of this call, if any.

    from CallNode
    getAnAttributeRead

    Gets a call obj.name with no arguments, where this node flows to obj.

    from LocalSourceNode
    getAnAttributeWriteValue

    Gets a value assigned to name on this object, such as the x in obj.name = x.

    from LocalSourceNode
    getAnElementRead

    Gets an access to an element on this node, such as obj[key].

    from LocalSourceNode
    getAnElementRead

    Gets an access to the element key on this node, such as obj[:key].

    from LocalSourceNode
    getAnElementWriteValue

    Gets a value stored as an element on this node, such as the x in obj[key] = x.

    from LocalSourceNode
    getAnElementWriteValue

    Gets the x in obj[key] = x, where this node flows to obj.

    from LocalSourceNode
    getArgument

    Gets the data-flow node corresponding to the nth argument of the call corresponding to this data-flow node

    from CallNode
    getBlock

    Gets the block of this call.

    from CallNode
    getConstantValue

    Gets the constant value of this expression, if any.

    from Node
    getEnclosingMethod

    Gets the enclosing method, if any.

    from Node
    getExprNode

    Gets the expression corresponding to this node.

    from ExprNode
    getKeywordArgument

    Gets the data-flow node corresponding to the named argument of the call corresponding to this data-flow node

    from CallNode
    getKeywordArgumentIncludeHashArgument

    Gets the data-flow node corresponding to the named argument of the call corresponding to this data-flow node, also including values passed with (pre Ruby 2.0) hash arguments.

    from CallNode
    getLocation

    Gets the location of this node.

    from Node
    getMethodName

    Gets the name of the method called by the method call (if any) corresponding to this data-flow node

    from CallNode
    getNumberOfArguments

    Gets the number of arguments of this call.

    from CallNode
    getPositionalArgument

    Gets the nth positional argument of this call. Unlike getArgument, this excludes keyword arguments.

    from CallNode
    getReceiver

    Gets the data-flow node corresponding to the receiver of the call corresponding to this data-flow node

    from CallNode
    hasLocationInfo

    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.

    from Node
    isSuperCall

    Holds if this is a super call.

    from CallNode
    toString

    Gets a textual representation of this node.

    from Node
    track

    Starts tracking this node forward using API graphs.

    from LocalSourceNode
    track

    Gets a node that this node may flow to using one heap and/or interprocedural step.

    from LocalSourceNode

    Charpred