C# Class Pchp.CodeAnalysis.Semantics.LocalsTable

Table of local variables used within routine.
Afficher le fichier Open project: iolevel/peachpie Class Usage Examples

Méthodes publiques

Méthode Description
BindVariable ( VariableName varname, VariableKind kind, Func initializer = null ) : BoundVariable

Gets local variable or create local if not yet.

GetVariableKind ( VariableName varname ) : VariableKind

Gets kind of declared variable or VariableKind.LocalVariable by default.

GetVariables ( ) : IEnumerable

Gets enumeration of local variables.

GetVariables ( VariableName name ) : IEnumerable

Gets variables with given name. There might be more variables with same name of a different kind.

LocalsTable ( SourceRoutineSymbol routine ) : Devsense.PHP.Syntax

Initializes table of locals of given routine.

Private Methods

Méthode Description
CreateVariable ( VariableName name, VariableKind kind, Func initializer ) : BoundVariable
PopuplateParameters ( ) : void

Method Details

BindVariable() public méthode

Gets local variable or create local if not yet.
public BindVariable ( VariableName varname, VariableKind kind, Func initializer = null ) : BoundVariable
varname VariableName
kind VariableKind
initializer Func
Résultat BoundVariable

GetVariableKind() public méthode

Gets kind of declared variable or VariableKind.LocalVariable by default.
public GetVariableKind ( VariableName varname ) : VariableKind
varname VariableName
Résultat VariableKind

GetVariables() public méthode

Gets enumeration of local variables.
public GetVariables ( ) : IEnumerable
Résultat IEnumerable

GetVariables() public méthode

Gets variables with given name. There might be more variables with same name of a different kind.
public GetVariables ( VariableName name ) : IEnumerable
name VariableName
Résultat IEnumerable

LocalsTable() public méthode

Initializes table of locals of given routine.
public LocalsTable ( SourceRoutineSymbol routine ) : Devsense.PHP.Syntax
routine Pchp.CodeAnalysis.Symbols.SourceRoutineSymbol
Résultat Devsense.PHP.Syntax