C# Класс Pchp.CodeAnalysis.FlowAnalysis.FlowContext

Manages context of local variables, their merged type and return value type.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
FlowContext Devsense.PHP.Syntax

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
FlowContext ( TypeRefContext typeCtx, SourceRoutineSymbol routine ) : Devsense.PHP.Syntax

Описание методов

AddVarType() публичный Метод

public AddVarType ( int varindex, TypeRefMask type ) : void
varindex int
type TypeRefMask
Результат void

GetVarIndex() публичный Метод

Gets index of variable within the context.
public GetVarIndex ( VariableName name ) : int
name VariableName
Результат int

GetVarType() публичный Метод

public GetVarType ( VariableName name ) : TypeRefMask
name VariableName
Результат TypeRefMask

IsReference() публичный Метод

Gets value indicating whether given variable might be a reference.
public IsReference ( int varindex ) : bool
varindex int
Результат bool

IsUsed() публичный Метод

public IsUsed ( int varindex ) : bool
varindex int
Результат bool

SetAllUsed() публичный Метод

Marks all local variables as used.
public SetAllUsed ( ) : void
Результат void

SetReference() публичный Метод

public SetReference ( int varindex ) : void
varindex int
Результат void

SetUsed() публичный Метод

Sets specified variable as being used.
public SetUsed ( int varindex ) : void
varindex int
Результат void