C# Class Pchp.CodeAnalysis.FlowAnalysis.FlowContext

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

Private Properties

Property Type Description
FlowContext Devsense.PHP.Syntax

Public Methods

Method 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

Method Description
FlowContext ( TypeRefContext typeCtx, SourceRoutineSymbol routine ) : Devsense.PHP.Syntax

Method Details

AddVarType() public method

public AddVarType ( int varindex, TypeRefMask type ) : void
varindex int
type TypeRefMask
return void

GetVarIndex() public method

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

GetVarType() public method

public GetVarType ( VariableName name ) : TypeRefMask
name VariableName
return TypeRefMask

IsReference() public method

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

IsUsed() public method

public IsUsed ( int varindex ) : bool
varindex int
return bool

SetAllUsed() public method

Marks all local variables as used.
public SetAllUsed ( ) : void
return void

SetReference() public method

public SetReference ( int varindex ) : void
varindex int
return void

SetUsed() public method

Sets specified variable as being used.
public SetUsed ( int varindex ) : void
varindex int
return void