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
Показать файл Открыть проект Примеры использования класса

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

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