C# Class Pchp.CodeAnalysis.FlowAnalysis.FlowContext

Manages context of local variables, their merged type and return value type.
Afficher le fichier Open project: iolevel/peachpie Class Usage Examples

Private Properties

Свойство Type Description
FlowContext Devsense.PHP.Syntax

Méthodes publiques

Méthode Description
AddVarType ( int varindex, TypeRefMask type ) : void
GetVarIndex ( VariableName name ) : int

Gets index of variable within the context.

GetVarType ( VariableName name ) : TypeRefMask
IsReference ( int varindex ) : bool

Gets value indicating whether given variable might be a reference.

IsUsed ( int varindex ) : bool
SetAllUsed ( ) : void

Marks all local variables as used.

SetReference ( int varindex ) : void
SetUsed ( int varindex ) : void

Sets specified variable as being used.

Private Methods

Méthode Description
FlowContext ( TypeRefContext typeCtx, SourceRoutineSymbol routine ) : Devsense.PHP.Syntax

Method Details

AddVarType() public méthode

public AddVarType ( int varindex, TypeRefMask type ) : void
varindex int
type TypeRefMask
Résultat void

GetVarIndex() public méthode

Gets index of variable within the context.
public GetVarIndex ( VariableName name ) : int
name VariableName
Résultat int

GetVarType() public méthode

public GetVarType ( VariableName name ) : TypeRefMask
name VariableName
Résultat TypeRefMask

IsReference() public méthode

Gets value indicating whether given variable might be a reference.
public IsReference ( int varindex ) : bool
varindex int
Résultat bool

IsUsed() public méthode

public IsUsed ( int varindex ) : bool
varindex int
Résultat bool

SetAllUsed() public méthode

Marks all local variables as used.
public SetAllUsed ( ) : void
Résultat void

SetReference() public méthode

public SetReference ( int varindex ) : void
varindex int
Résultat void

SetUsed() public méthode

Sets specified variable as being used.
public SetUsed ( int varindex ) : void
varindex int
Résultat void