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
Afficher le fichier Open project: jschementi/iron

Private Properties

Свойство Type Description
CompileBody LookupCompilationDelegate
EnsureTarget void
EnsureTracingTarget void
EvalWrapper object
ExtractConstant PythonConstantExpression
GetTarget LookupCompilationDelegate
RunWorker object
ShouldInterpret bool

Méthodes publiques

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

Private Methods

Méthode 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 méthode

public CreateScope ( ) : Scope
Résultat Scope

GetFunctionCode() public méthode

public GetFunctionCode ( bool register ) : FunctionCode
register bool
Résultat IronPython.Runtime.FunctionCode

PythonScriptCode() public méthode

public PythonScriptCode ( Compiler ast ) : System.Linq.Expressions
ast Compiler
Résultat System.Linq.Expressions

Run() public méthode

public Run ( ) : object
Résultat object

Run() public méthode

public Run ( Scope scope ) : object
scope Scope
Résultat object