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

Class InvokeNode

An API graph node representing a method call.

Import path

import codeql.ruby.frameworks.data.internal.ApiGraphModelsSpecific

Direct supertypes

Indirect supertypes

Predicates

getNumArgument

Gets the number of arguments to the call.

Inherited predicates

asCall

Gets the call referred to by this API node.

from Node
asCallable

Gets a callable that can reach this sink.

from Node
asModule

Gets a module or class referred to by this API node.

from Node
asSink

Gets a data-flow node where this value potentially flows into an external library.

from Node
asSource

Gets a data-flow node where this value enters the current codebase.

from Node
getADescendentModule

Gets a module or class that descends from the module or class referenced by this API node.

from Node
getAMember

Gets an access to a constant with this value as the base of the access.

from Node
getAMethodCall

Gets a call to a method on the receiver represented by this API node.

from Node
getAValueReachableFromSource

Gets a data-flow node where this value may flow interprocedurally.

from Node
getAValueReachingSink

Get a data-flow node that transitively flows to this value, provided that this value corresponds to a sink.

from Node
getAnElement

Gets a representative for an arbitrary element of this collection.

from Node
getAnInstantiation

Gets a new call with this value as the receiver.

from Node
getArgument

Gets the nth positional argument to this call.

from Node
getArgumentAtPosition

Gets the argument passed in argument position pos at this call.

from Node
getBlock

Gets the block argument to this call, or the block parameter of this callable.

from Node
getBlockParameter

Gets the block parameter of a callable that can reach this sink.

from Node
getContent

Gets a representative for the content of this value.

from Node
getContents

Gets a representative for the contents of this value.

from Node
getField

Gets a representative for the instance field of the given name, which must include the @ character.

from Node
getInducingNode

Gets the data-flow node that gives rise to this node, if any.

from Node
getInstance

Gets a node that may refer to an instance of the module or class represented by this API node.

from Node
getKeywordArgument

Gets the given keyword argument to this call.

from Node
getKeywordParameter

Gets the given keyword parameter of this callable, or keyword argument to this call.

from Node
getLocation

Gets the location of this node.

from Node
getMember

Gets an access to the constant m with this value as the base of the access.

from Node
getMethod

Gets a call to method with this value as the receiver, or the definition of method on an object that can reach this sink.

from Node
getParameter

Gets the nth positional parameter of this callable, or the nth positional argument to this call.

from Node
getParameterAtPosition

Gets the parameter at position pos of this callable.

from Node
getReturn

Gets the result of this call, or the return value of this callable.

from Node
getReturn

Gets the result of a call to method with this value as the receiver, or the return value of method defined on an object that can reach this sink.

from Node
toString

Gets a textual representation of this element.

from MethodAccessNode