C# Класс 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.
Наследование: Microsoft.Scripting.ScriptCode
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
CompileBody LookupCompilationDelegate
EnsureTarget void
EnsureTracingTarget void
EvalWrapper object
ExtractConstant PythonConstantExpression
GetTarget LookupCompilationDelegate
RunWorker object
ShouldInterpret bool

Открытые методы

Метод Описание
CreateScope ( ) : Scope
GetFunctionCode ( bool register ) : FunctionCode
PythonScriptCode ( Compiler ast ) : System.Linq.Expressions
Run ( ) : object
Run ( Scope scope ) : object

Приватные методы

Метод Описание
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

Описание методов

CreateScope() публичный Метод

public CreateScope ( ) : Scope
Результат Scope

GetFunctionCode() публичный Метод

public GetFunctionCode ( bool register ) : FunctionCode
register bool
Результат IronPython.Runtime.FunctionCode

PythonScriptCode() публичный Метод

public PythonScriptCode ( Compiler ast ) : System.Linq.Expressions
ast Compiler
Результат System.Linq.Expressions

Run() публичный Метод

public Run ( ) : object
Результат object

Run() публичный Метод

public Run ( Scope scope ) : object
scope Scope
Результат object