C# 클래스 Pchp.CodeAnalysis.FlowAnalysis.FlowContext

Manages context of local variables, their merged type and return value type.
파일 보기 프로젝트 열기: iolevel/peachpie 1 사용 예제들

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