CodeQL library for Rust
codeql/rust-all 0.2.23 (changelog, source)
Search

Class MethodCallExprCfgNode

A method call expression. For example:

x.foo(42);
x.foo::<u32, u64>(42);

Import path

import codeql.rust.controlflow.CfgNodes

Direct supertypes

Indirect supertypes

Predicates

getPositionalArgument

Gets the ith argument of this call.

Inherited predicates

getAPredecessor

Gets an immediate predecessor, if any.

from NodeImpl
getAPredecessor

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

from NodeImpl
getASplit

Gets a split for this control flow node, if any.

from AstCfgNodeImpl
getASuccessor

Gets an immediate successor, if any.

from NodeImpl
getASuccessor

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

from NodeImpl
getAnAttr

Gets any of the attrs of this method call expression.

from MethodCallExprCfgNode
getArgList

Gets the argument list of this method call expression, if it exists.

from MethodCallExprCfgNode
getAstNode

Gets the AST node that this node corresponds to, if any.

from AstCfgNodeImpl
getAttr

Gets the indexth attr of this method call expression (0-based).

from MethodCallExprCfgNode
getEnclosingCallable

Gets the enclosing callable of this node.

from NodeImpl
getExpr

Gets the underlying Expr.

from ExprCfgNode
getGenericArgList

Gets the generic argument list of this method call expression, if it exists.

from MethodCallExprCfgNode
getIdentifier

Gets the identifier of this method call expression, if it exists.

from MethodCallExprCfgNode
getLocation

Gets the location of this control flow node.

from AstCfgNodeImpl
getMethodCallExpr

Gets the underlying MethodCallExpr.

from MethodCallExprCfgNode
getNumberOfAttrs

Gets the number of attrs of this method call expression.

from MethodCallExprCfgNode
getReceiver

Gets the receiver of this method call expression, if it exists.

from MethodCallExprCfgNode
getScope

Gets the scope of this node.

from NodeImpl
getSplitsString

Gets a comma-separated list of strings for each split in this node, if any.

from AstCfgNodeImpl
hasArgList

Holds if getArgList() exists.

from MethodCallExprCfgNode
hasGenericArgList

Holds if getGenericArgList() exists.

from MethodCallExprCfgNode
hasIdentifier

Holds if getIdentifier() exists.

from MethodCallExprCfgNode
hasReceiver

Holds if getReceiver() exists.

from MethodCallExprCfgNode
isBranch

Holds if this node has more than one successor.

from NodeImpl
isCondition

Holds if this control flow node has conditional successors.

from NodeImpl
isJoin

Holds if this node has more than one predecessor.

from NodeImpl
toString

Gets a textual representation of this control flow node.

from AstCfgNodeImpl

Charpred