C# Class IronPython.Compiler.PythonScriptCode

Represents a script code which can be dynamically bound to execute against arbitrary Scope objects. This is used for code when the user runs against a particular scope as well as for exec and eval code as well.
Inheritance: Microsoft.Scripting.ScriptCode
Datei anzeigen Open project: jschementi/iron

Private Properties

Property Type Description
CompileBody LookupCompilationDelegate
EnsureTarget void
EnsureTracingTarget void
EvalWrapper object
ExtractConstant PythonConstantExpression
GetTarget LookupCompilationDelegate
RunWorker object
ShouldInterpret bool

Public Methods

Method Description
CreateScope ( ) : Scope
GetFunctionCode ( bool register ) : FunctionCode
PythonScriptCode ( Compiler ast ) : System.Linq.Expressions
Run ( ) : object
Run ( Scope scope ) : object

Private Methods

Method Description
CompileBody ( LightExpression lambda ) : LookupCompilationDelegate
EnsureTarget ( bool register ) : void
EnsureTracingTarget ( ) : void
EvalWrapper ( CodeContext ctx ) : object
ExtractConstant ( LightExpression lambda ) : PythonConstantExpression
GetTarget ( bool register ) : LookupCompilationDelegate
RunWorker ( CodeContext ctx ) : object
ShouldInterpret ( IronPython.Runtime.PythonContext pc ) : bool

Method Details

CreateScope() public method

public CreateScope ( ) : Scope
return Scope

GetFunctionCode() public method

public GetFunctionCode ( bool register ) : FunctionCode
register bool
return IronPython.Runtime.FunctionCode

PythonScriptCode() public method

public PythonScriptCode ( Compiler ast ) : System.Linq.Expressions
ast Compiler
return System.Linq.Expressions

Run() public method

public Run ( ) : object
return object

Run() public method

public Run ( Scope scope ) : object
scope Scope
return object