C# Class System.Linq.Expressions.Interpreter.LocalVariables

Mostrar archivo Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
AddClosureVariable LocalVariable
Box void
ContainsVariable bool
CopyLocals LocalVariable>.Dictionary
LocalVariables System.Collections.Generic

Public Methods

Method Description
DefineLocal ( ParameterExpression variable, int start ) : LocalDefinition
GetLocalIndex ( ParameterExpression var ) : int
GetOrDefineLocal ( ParameterExpression var ) : int
TryGetLocalOrClosure ( ParameterExpression var, LocalVariable &local ) : bool
UndefineLocal ( LocalDefinition definition, int end ) : void

Private Methods

Method Description
AddClosureVariable ( ParameterExpression variable ) : LocalVariable
Box ( ParameterExpression variable, System.Linq.Expressions.Interpreter.InstructionList instructions ) : void
ContainsVariable ( ParameterExpression variable ) : bool

Checks to see if the given variable is defined within the current local scope.

CopyLocals ( ) : LocalVariable>.Dictionary

Gets a copy of the local variables which are defined in the current scope.

LocalVariables ( ) : System.Collections.Generic

Method Details

DefineLocal() public method

public DefineLocal ( ParameterExpression variable, int start ) : LocalDefinition
variable ParameterExpression
start int
return LocalDefinition

GetLocalIndex() public method

public GetLocalIndex ( ParameterExpression var ) : int
var ParameterExpression
return int

GetOrDefineLocal() public method

public GetOrDefineLocal ( ParameterExpression var ) : int
var ParameterExpression
return int

TryGetLocalOrClosure() public method

public TryGetLocalOrClosure ( ParameterExpression var, LocalVariable &local ) : bool
var ParameterExpression
local LocalVariable
return bool

UndefineLocal() public method

public UndefineLocal ( LocalDefinition definition, int end ) : void
definition LocalDefinition
end int
return void