C# 클래스 IronPython.Compiler.CompilationMode

파일 보기 프로젝트 열기: jschementi/iron 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Collectable CompilationMode
Lookup CompilationMode
ToDisk CompilationMode
Uncollectable CompilationMode

공개 메소드들

메소드 설명
Dynamic ( DynamicMetaObjectBinder binder, Type retType, System.Linq.Expressions arg0 ) : Expression
Dynamic ( DynamicMetaObjectBinder binder, Type retType, System.Linq.Expressions arg0, System.Linq.Expressions arg1 ) : Expression
Dynamic ( DynamicMetaObjectBinder binder, Type retType, System.Linq.Expressions arg0, System.Linq.Expressions arg1, System.Linq.Expressions arg2 ) : Expression
Dynamic ( DynamicMetaObjectBinder binder, Type retType, System.Linq.Expressions arg0, System.Linq.Expressions arg1, System.Linq.Expressions arg2, System.Linq.Expressions arg3 ) : Expression
GetConstant ( object value ) : Expression
GetConstantType ( object value ) : Type
GetContext ( ) : UncollectableCompilationMode.ConstantInfo
GetGlobal ( System.Linq.Expressions globalContext, int arrayIndex, PythonVariable variable, IronPython.Compiler.PythonGlobal global ) : Expression
MakeScriptCode ( IronPython.Compiler.Ast.PythonAst ast ) : ScriptCode
PrepareScope ( IronPython.Compiler.Ast.PythonAst ast, ReadOnlyCollectionBuilder locals, List init ) : void
PublishContext ( CodeContext codeContext, UncollectableCompilationMode _contextInfo ) : void
ReduceAst ( IronPython.Compiler.Ast.PythonAst instance, string name ) : LightLambdaExpression
ReduceDynamic ( DynamicMetaObjectBinder binder, Type retType, System.Linq.Expressions arg0 ) : Expression
ReduceDynamic ( DynamicMetaObjectBinder binder, Type retType, System.Linq.Expressions arg0, System.Linq.Expressions arg1 ) : Expression
ReduceDynamic ( DynamicMetaObjectBinder binder, Type retType, System.Linq.Expressions arg0, System.Linq.Expressions arg1, System.Linq.Expressions arg2 ) : Expression
ReduceDynamic ( DynamicMetaObjectBinder binder, Type retType, System.Linq.Expressions arg0, System.Linq.Expressions arg1, System.Linq.Expressions arg2, System.Linq.Expressions arg3 ) : Expression

메소드 상세

Dynamic() 공개 메소드

public Dynamic ( DynamicMetaObjectBinder binder, Type retType, System.Linq.Expressions arg0 ) : Expression
binder DynamicMetaObjectBinder
retType System.Type
arg0 System.Linq.Expressions
리턴 System.Linq.Expressions.Expression

Dynamic() 공개 메소드

public Dynamic ( DynamicMetaObjectBinder binder, Type retType, System.Linq.Expressions arg0, System.Linq.Expressions arg1 ) : Expression
binder DynamicMetaObjectBinder
retType System.Type
arg0 System.Linq.Expressions
arg1 System.Linq.Expressions
리턴 System.Linq.Expressions.Expression

Dynamic() 공개 메소드

public Dynamic ( DynamicMetaObjectBinder binder, Type retType, System.Linq.Expressions arg0, System.Linq.Expressions arg1, System.Linq.Expressions arg2 ) : Expression
binder DynamicMetaObjectBinder
retType System.Type
arg0 System.Linq.Expressions
arg1 System.Linq.Expressions
arg2 System.Linq.Expressions
리턴 System.Linq.Expressions.Expression

Dynamic() 공개 메소드

public Dynamic ( DynamicMetaObjectBinder binder, Type retType, System.Linq.Expressions arg0, System.Linq.Expressions arg1, System.Linq.Expressions arg2, System.Linq.Expressions arg3 ) : Expression
binder DynamicMetaObjectBinder
retType System.Type
arg0 System.Linq.Expressions
arg1 System.Linq.Expressions
arg2 System.Linq.Expressions
arg3 System.Linq.Expressions
리턴 System.Linq.Expressions.Expression

GetConstant() 공개 메소드

public GetConstant ( object value ) : Expression
value object
리턴 System.Linq.Expressions.Expression

GetConstantType() 공개 메소드

public GetConstantType ( object value ) : Type
value object
리턴 System.Type

GetContext() 공개 메소드

public GetContext ( ) : UncollectableCompilationMode.ConstantInfo
리턴 UncollectableCompilationMode.ConstantInfo

GetGlobal() 공개 추상적인 메소드

public abstract GetGlobal ( System.Linq.Expressions globalContext, int arrayIndex, PythonVariable variable, IronPython.Compiler.PythonGlobal global ) : Expression
globalContext System.Linq.Expressions
arrayIndex int
variable IronPython.Compiler.Ast.PythonVariable
global IronPython.Compiler.PythonGlobal
리턴 System.Linq.Expressions.Expression

MakeScriptCode() 공개 메소드

public MakeScriptCode ( IronPython.Compiler.Ast.PythonAst ast ) : ScriptCode
ast IronPython.Compiler.Ast.PythonAst
리턴 Microsoft.Scripting.ScriptCode

PrepareScope() 공개 메소드

public PrepareScope ( IronPython.Compiler.Ast.PythonAst ast, ReadOnlyCollectionBuilder locals, List init ) : void
ast IronPython.Compiler.Ast.PythonAst
locals ReadOnlyCollectionBuilder
init List
리턴 void

PublishContext() 공개 메소드

public PublishContext ( CodeContext codeContext, UncollectableCompilationMode _contextInfo ) : void
codeContext CodeContext
_contextInfo UncollectableCompilationMode
리턴 void

ReduceAst() 공개 추상적인 메소드

public abstract ReduceAst ( IronPython.Compiler.Ast.PythonAst instance, string name ) : LightLambdaExpression
instance IronPython.Compiler.Ast.PythonAst
name string
리턴 LightLambdaExpression

ReduceDynamic() 공개 메소드

public ReduceDynamic ( DynamicMetaObjectBinder binder, Type retType, System.Linq.Expressions arg0 ) : Expression
binder DynamicMetaObjectBinder
retType System.Type
arg0 System.Linq.Expressions
리턴 System.Linq.Expressions.Expression

ReduceDynamic() 공개 메소드

public ReduceDynamic ( DynamicMetaObjectBinder binder, Type retType, System.Linq.Expressions arg0, System.Linq.Expressions arg1 ) : Expression
binder DynamicMetaObjectBinder
retType System.Type
arg0 System.Linq.Expressions
arg1 System.Linq.Expressions
리턴 System.Linq.Expressions.Expression

ReduceDynamic() 공개 메소드

public ReduceDynamic ( DynamicMetaObjectBinder binder, Type retType, System.Linq.Expressions arg0, System.Linq.Expressions arg1, System.Linq.Expressions arg2 ) : Expression
binder DynamicMetaObjectBinder
retType System.Type
arg0 System.Linq.Expressions
arg1 System.Linq.Expressions
arg2 System.Linq.Expressions
리턴 System.Linq.Expressions.Expression

ReduceDynamic() 공개 메소드

public ReduceDynamic ( DynamicMetaObjectBinder binder, Type retType, System.Linq.Expressions arg0, System.Linq.Expressions arg1, System.Linq.Expressions arg2, System.Linq.Expressions arg3 ) : Expression
binder DynamicMetaObjectBinder
retType System.Type
arg0 System.Linq.Expressions
arg1 System.Linq.Expressions
arg2 System.Linq.Expressions
arg3 System.Linq.Expressions
리턴 System.Linq.Expressions.Expression

프로퍼티 상세

Collectable 공개적으로 정적으로 프로퍼티

Compilation will use an array for globals. The resulting code will be fully collectible and once all references are released will be collected.
public static CompilationMode,IronPython.Compiler Collectable
리턴 CompilationMode

Lookup 공개적으로 정적으로 프로퍼티

Compilation will force all global accesses to do a full lookup. This will also happen for any unbound local references. This is the slowest form of code generation and is only used for exec/eval code where we can run against an arbitrary dictionary.
public static CompilationMode,IronPython.Compiler Lookup
리턴 CompilationMode

ToDisk 공개적으로 정적으로 프로퍼티

Compilation will proceed in a manner in which the resulting AST can be serialized to disk.
public static CompilationMode,IronPython.Compiler ToDisk
리턴 CompilationMode

Uncollectable 공개적으로 정적으로 프로퍼티

Compilation will use a type and declare static fields for globals. The resulting type is uncollectible and therefore extended use of this will cause memory leaks.
public static CompilationMode,IronPython.Compiler Uncollectable
리턴 CompilationMode