C# Class IronPython.Compiler.PythonGlobalVariableExpression

Small reducable node which just fetches the value from a PythonGlobal object. The compiler recognizes these on sets and turns them into assignments on the python global object.
Inheritance: Expression, IInstructionProvider, IPythonGlobalExpression, ILightExceptionAwareExpression
ファイルを表示 Open project: jschementi/iron Class Usage Examples

Public Methods

Method Description
AddInstructions ( Microsoft.Scripting.Interpreter.LightCompiler compiler ) : void
Assign ( Expression value ) : Expression
Create ( ) : Expression
Delete ( ) : Expression
PythonGlobalVariableExpression ( Expression globalExpr, Microsoft.Scripting.Ast.Ast variable, IronPython.Compiler.PythonGlobal global ) : System.Linq.Expressions
RawValue ( ) : Expression
Reduce ( ) : Expression

Protected Methods

Method Description
VisitChildren ( ExpressionVisitor visitor ) : Expression

Private Methods

Method Description
ILightExceptionAwareExpression ( ) : Expression
PythonGlobalVariableExpression ( Expression globalExpr, Microsoft.Scripting.Ast.Ast variable, IronPython.Compiler.PythonGlobal global, bool lightEh ) : System.Linq.Expressions

Method Details

AddInstructions() public method

public AddInstructions ( Microsoft.Scripting.Interpreter.LightCompiler compiler ) : void
compiler Microsoft.Scripting.Interpreter.LightCompiler
return void

Assign() public method

public Assign ( Expression value ) : Expression
value Expression
return Expression

Create() public method

public Create ( ) : Expression
return Expression

Delete() public method

public Delete ( ) : Expression
return Expression

PythonGlobalVariableExpression() public method

public PythonGlobalVariableExpression ( Expression globalExpr, Microsoft.Scripting.Ast.Ast variable, IronPython.Compiler.PythonGlobal global ) : System.Linq.Expressions
globalExpr Expression
variable Microsoft.Scripting.Ast.Ast
global IronPython.Compiler.PythonGlobal
return System.Linq.Expressions

RawValue() public method

public RawValue ( ) : Expression
return Expression

Reduce() public method

public Reduce ( ) : Expression
return Expression

VisitChildren() protected method

protected VisitChildren ( ExpressionVisitor visitor ) : Expression
visitor System.Linq.Expressions.ExpressionVisitor
return Expression