C# 클래스 IronPython.Compiler.ClosureExpression

Small reducable node which just fetches the value from a ClosureCell object. Like w/ global variables the compiler recognizes these on sets and turns them into assignments on the python global object.
상속: Expression, IPythonVariableExpression
파일 보기 프로젝트 열기: jschementi/iron 1 사용 예제들

공개 메소드들

메소드 설명
Assign ( Expression value ) : Expression

Assigns a value to the closure cell.

ClosureExpression ( Microsoft.Scripting.Ast.Ast variable, Expression closureCell, System.Linq.Expressions.ParameterExpression parameter ) : System.Linq.Expressions
Create ( ) : Expression

Creates the storage for the closure cell. If this is a closure over a parameter it captures the initial incoming parameter value.

Delete ( ) : Expression

Removes the current value from the closure cell.

Reduce ( ) : Expression

Reduces the closure cell to a read of the value stored in the cell.

메소드 상세

Assign() 공개 메소드

Assigns a value to the closure cell.
public Assign ( Expression value ) : Expression
value Expression
리턴 Expression

ClosureExpression() 공개 메소드

public ClosureExpression ( Microsoft.Scripting.Ast.Ast variable, Expression closureCell, System.Linq.Expressions.ParameterExpression parameter ) : System.Linq.Expressions
variable Microsoft.Scripting.Ast.Ast
closureCell Expression
parameter System.Linq.Expressions.ParameterExpression
리턴 System.Linq.Expressions

Create() 공개 메소드

Creates the storage for the closure cell. If this is a closure over a parameter it captures the initial incoming parameter value.
public Create ( ) : Expression
리턴 Expression

Delete() 공개 메소드

Removes the current value from the closure cell.
public Delete ( ) : Expression
리턴 Expression

Reduce() 공개 메소드

Reduces the closure cell to a read of the value stored in the cell.
public Reduce ( ) : Expression
리턴 Expression