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

Class Make::MakeSsa::SsaParameterInit

An SSA definition representing the initialization of a parameter at the beginning of a callable.

Import path

import codeql.ssa.Ssa

Direct supertypes

Indirect supertypes

Predicates

getParameter

Gets the parameter that this definition represents. This is equivalent to getDefinition().isParameterInit(result)

toString

Gets a textual representation of this SSA definition.

Inherited predicates

definesAt

Holds if this SSA definition defines v at index i in basic block bb. Phi nodes are considered to be at index -1, while normal variable writes are at the index of the control flow node they wrap.

from Definition
getARead

Gets a read of this SSA definition.

from SsaDefinition
getAnUltimateDefinition

Gets a definition that ultimately defines this SSA definition and is not itself a phi definition.

from SsaDefinition
getBasicBlock

Gets the basic block to which this SSA definition belongs.

from Definition
getControlFlowNode

Gets the control flow node of this SSA definition.

from SsaDefinition
getDefiningExpr

Gets the expression representing this write, if any. This is equivalent to getDefinition().asExpr().

from SsaExplicitWrite
getDefinition

Gets the write underlying this SSA definition.

from SsaExplicitWrite
getLocation

Gets the location of this SSA definition.

from Definition
getSourceVariable

Gets the source variable underlying this SSA definition.

from Definition
getValue

Gets the expression with the value being written, if any. This is equivalent to getDefinition().getValue().

from SsaExplicitWrite
isLiveAtEndOfBlock

Holds if this SSA definition is live at the end of basic block bb. That is, this definition reaches the end of basic block bb, at which point it is still live, without crossing another SSA definition of the same source variable.

from SsaDefinition

Charpred