CodeQL library for C#
codeql/csharp-all 0.9.0 (changelog, source)
Search

Class DefinitionExt

An extended static single assignment (SSA) definition.

This is either a normal SSA definition (Definition) or a phi-read node (PhiReadNode).

Only intended for internal use.

Import path

import semmle.code.csharp.dataflow.internal.SsaImpl

Direct supertypes

Indirect supertypes

Known direct subtypes

    Predicates

    getEnclosingCallable

    Gets the enclosing callable of this definition.

    getLocation

    Gets the location of this definition.

    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 DefinitionExt
    getBasicBlock

    Gets the basic block to which this SSA definition belongs.

    from DefinitionExt
    getSourceVariable

    Gets the source variable underlying this SSA definition.

    from DefinitionExt