C# Class IronPython.Compiler.Ast.ComprehensionScope

Scope for the comprehension. Because scopes are usually statements and comprehensions are expressions this doesn't actually show up in the AST hierarchy and instead hangs off the comprehension expression.
Inheritance: ScopeStatement
Datei anzeigen Open project: jschementi/iron Class Usage Examples

Private Properties

Property Type Description
AddVariables Microsoft.Scripting.Ast.Ast
BindReference PythonVariable
ExposesLocalVariable bool
GetLambda Microsoft.Scripting.Ast.LightLambdaExpression
GetVariableExpression Microsoft.Scripting.Ast.Ast

Public Methods

Method Description
ComprehensionScope ( Expression comprehension ) : System
Walk ( IronPython.Compiler.Ast.PythonWalker walker ) : void

Private Methods

Method Description
AddVariables ( Microsoft.Scripting.Ast.Ast expression ) : Microsoft.Scripting.Ast.Ast
BindReference ( PythonNameBinder binder, PythonReference reference ) : PythonVariable
ExposesLocalVariable ( PythonVariable variable ) : bool
GetLambda ( ) : Microsoft.Scripting.Ast.LightLambdaExpression
GetVariableExpression ( PythonVariable variable ) : Microsoft.Scripting.Ast.Ast

Method Details

ComprehensionScope() public method

public ComprehensionScope ( Expression comprehension ) : System
comprehension Expression
return System

Walk() public method

public Walk ( IronPython.Compiler.Ast.PythonWalker walker ) : void
walker IronPython.Compiler.Ast.PythonWalker
return void