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

Class Impl::Variable

A variable.

Import path

import codeql.rust.elements.internal.VariableImpl

Direct supertypes

Indirect supertypes

Predicates

getAnAccess

Gets an access to this variable.

getEnclosingBlock

Gets the block that encloses this variable, if any.

getEnclosingCfgScope

Gets the enclosing CFG scope for this variable declaration.

getInitializer

Gets the initial value of this variable, if any.

getLetExpr

Gets the let expression that introduces this variable, if any.

getLetStmt

Gets the let statement that introduces this variable, if any.

getName

Get the name of this variable.

getParameter

Gets the parameter that introduces this variable, if any.

getPat

Gets the pattern that declares this variable, if any.

getSelfParam

Gets the self parameter that declares this variable, if any.

getText

Gets the name of this variable.

isCaptured

Holds if this variable is captured.

isImmutable

Holds if this variable is immutable.

isMutable

Holds if this variable is mutable.

Inherited predicates

getDefiningNode

Gets the AST node that defines this local entity, if any.

from LocalImpl
getLocation

Gets the location of this local entity.

from LocalImpl
getScope

Gets the AST node that defines the scope of this local entity.

from LocalImpl
toString

Gets a textual representation of this local entity.

from LocalImpl

Charpred