C# Class IronRuby.Compiler.Ast.AstGenerator

Mostra file Open project: jschementi/iron Class Usage Examples

Private Properties

Property Type Description
AddDebugInfo System.Linq.Expressions.Expression
AddFileInitializer void
AddReturnTarget System.Linq.Expressions.Expression
AstGenerator System
CanAssign bool
ClearDebugInfo System.Linq.Expressions.Expression
DebugMark System.Linq.Expressions.Expression
DebugMarker System.Linq.Expressions.Expression
GetCurrentLambdaScope VariableScope
MakeHashOpCall System.Linq.Expressions.Expression
MakeMethodBlockParameterRead System.Linq.Expressions.Expression
MakeMethodBlockParameterSelfRead System.Linq.Expressions.Expression
Return System.Linq.Expressions.Expression
TranformExpressions AstExpressions
TransformExpressions AstExpressions
TransformMapletsToExpressions AstExpressions
TransformMapletsToExpressions AstExpressions
TransformStatements System.Linq.Expressions.Expression
TransformStatements System.Linq.Expressions.Expression
TransformStatements System.Linq.Expressions.Expression
TransformStatementsToBooleanExpression System.Linq.Expressions.Expression
TransformStatementsToExpression System.Linq.Expressions.Expression
TransformStatementsToExpression System.Linq.Expressions.Expression
TryCatchAny System.Linq.Expressions.Expression

Public Methods

Method Description
EnterBlockDefinition ( ScopeBuilder locals, System.Linq.Expressions bfcVariable, System.Linq.Expressions selfVariable, System.Linq.Expressions runtimeScopeVariable, System.Linq.Expressions redoLabel ) : void
EnterFileInitializer ( ScopeBuilder locals, System.Linq.Expressions selfVariable, System.Linq.Expressions runtimeScopeVariable ) : void
EnterLoop ( System.Linq.Expressions redoVariable, System.Linq.Expressions resultVariable, System.Linq.Expressions breakLabel, System.Linq.Expressions continueLabel ) : void
EnterMethodDefinition ( ScopeBuilder locals, System.Linq.Expressions selfParameter, System.Linq.Expressions runtimeScopeVariable, System.Linq.Expressions blockParameter, string methodName, Parameters parameters ) : void
EnterModuleDefinition ( ScopeBuilder locals, System.Linq.Expressions selfVariable, System.Linq.Expressions runtimeScopeVariable, bool isSingleton ) : void
EnterRescueClause ( System.Linq.Expressions retryingVariable, System.Linq.Expressions retryLabel ) : void
EnterSourceUnit ( ScopeBuilder locals, System.Linq.Expressions selfParameter, System.Linq.Expressions runtimeScopeVariable, System.Linq.Expressions blockParameter, string methodName, Parameters parameters ) : void
LeaveBlockDefinition ( ) : void
LeaveFileInitializer ( ) : void
LeaveLoop ( ) : void
LeaveMethodDefinition ( ) : void
LeaveModuleDefinition ( ) : void
LeaveRescueClause ( ) : void
LeaveSourceUnit ( ) : void
TransformToHashConstructor ( IList maplets ) : Expression

Private Methods

Method Description
AddDebugInfo ( System.Linq.Expressions expression, Microsoft.Scripting.SourceSpan location ) : Expression
AddFileInitializer ( System.Linq.Expressions expression ) : void
AddReturnTarget ( System.Linq.Expressions expression ) : Expression
AstGenerator ( RubyContext context, RubyCompilerOptions options, System.Linq.Expressions document, IronRuby.Builtins.RubyEncoding encoding, bool printInteractiveResult ) : System
CanAssign ( Type to, Type from ) : bool
ClearDebugInfo ( ) : Expression
DebugMark ( System.Linq.Expressions expression, string marker ) : Expression
DebugMarker ( string marker ) : Expression
GetCurrentLambdaScope ( ) : VariableScope

Gets the inner most scope that compiles to a lambda expression.

MakeHashOpCall ( IEnumerable expressions ) : Expression
MakeMethodBlockParameterRead ( ) : Expression

Makes a read of the current method's block parameter.

MakeMethodBlockParameterSelfRead ( ) : Expression

Makes a read of the Self property of the current method's block parameter. Returns Null constant in top-level code.

Return ( System.Linq.Expressions expression ) : Expression
TranformExpressions ( IList arguments, AstExpressions result ) : AstExpressions
TransformExpressions ( IList arguments ) : AstExpressions
TransformMapletsToExpressions ( IList maplets ) : AstExpressions
TransformMapletsToExpressions ( IList maplets, AstExpressions result ) : AstExpressions
TransformStatements ( Statements statements, ResultOperation resultOperation ) : Expression
TransformStatements ( System.Linq.Expressions prologue, Statements statements, ResultOperation resultOperation ) : Expression
TransformStatements ( System.Linq.Expressions prologue, Statements statements, System.Linq.Expressions epilogue, ResultOperation resultOperation ) : Expression
TransformStatementsToBooleanExpression ( Statements statements, bool positive ) : Expression
TransformStatementsToExpression ( Statements statements ) : Expression
TransformStatementsToExpression ( Statements statements, bool toBoolean, bool positive ) : Expression
TryCatchAny ( System.Linq.Expressions tryBody, System.Linq.Expressions catchBody ) : Expression

Method Details

EnterBlockDefinition() public method

public EnterBlockDefinition ( ScopeBuilder locals, System.Linq.Expressions bfcVariable, System.Linq.Expressions selfVariable, System.Linq.Expressions runtimeScopeVariable, System.Linq.Expressions redoLabel ) : void
locals ScopeBuilder
bfcVariable System.Linq.Expressions
selfVariable System.Linq.Expressions
runtimeScopeVariable System.Linq.Expressions
redoLabel System.Linq.Expressions
return void

EnterFileInitializer() public method

public EnterFileInitializer ( ScopeBuilder locals, System.Linq.Expressions selfVariable, System.Linq.Expressions runtimeScopeVariable ) : void
locals ScopeBuilder
selfVariable System.Linq.Expressions
runtimeScopeVariable System.Linq.Expressions
return void

EnterLoop() public method

public EnterLoop ( System.Linq.Expressions redoVariable, System.Linq.Expressions resultVariable, System.Linq.Expressions breakLabel, System.Linq.Expressions continueLabel ) : void
redoVariable System.Linq.Expressions
resultVariable System.Linq.Expressions
breakLabel System.Linq.Expressions
continueLabel System.Linq.Expressions
return void

EnterMethodDefinition() public method

public EnterMethodDefinition ( ScopeBuilder locals, System.Linq.Expressions selfParameter, System.Linq.Expressions runtimeScopeVariable, System.Linq.Expressions blockParameter, string methodName, Parameters parameters ) : void
locals ScopeBuilder
selfParameter System.Linq.Expressions
runtimeScopeVariable System.Linq.Expressions
blockParameter System.Linq.Expressions
methodName string
parameters Parameters
return void

EnterModuleDefinition() public method

public EnterModuleDefinition ( ScopeBuilder locals, System.Linq.Expressions selfVariable, System.Linq.Expressions runtimeScopeVariable, bool isSingleton ) : void
locals ScopeBuilder
selfVariable System.Linq.Expressions
runtimeScopeVariable System.Linq.Expressions
isSingleton bool
return void

EnterRescueClause() public method

public EnterRescueClause ( System.Linq.Expressions retryingVariable, System.Linq.Expressions retryLabel ) : void
retryingVariable System.Linq.Expressions
retryLabel System.Linq.Expressions
return void

EnterSourceUnit() public method

public EnterSourceUnit ( ScopeBuilder locals, System.Linq.Expressions selfParameter, System.Linq.Expressions runtimeScopeVariable, System.Linq.Expressions blockParameter, string methodName, Parameters parameters ) : void
locals ScopeBuilder
selfParameter System.Linq.Expressions
runtimeScopeVariable System.Linq.Expressions
blockParameter System.Linq.Expressions
methodName string
parameters Parameters
return void

LeaveBlockDefinition() public method

public LeaveBlockDefinition ( ) : void
return void

LeaveFileInitializer() public method

public LeaveFileInitializer ( ) : void
return void

LeaveLoop() public method

public LeaveLoop ( ) : void
return void

LeaveMethodDefinition() public method

public LeaveMethodDefinition ( ) : void
return void

LeaveModuleDefinition() public method

public LeaveModuleDefinition ( ) : void
return void

LeaveRescueClause() public method

public LeaveRescueClause ( ) : void
return void

LeaveSourceUnit() public method

public LeaveSourceUnit ( ) : void
return void

TransformToHashConstructor() public method

public TransformToHashConstructor ( IList maplets ) : Expression
maplets IList
return System.Linq.Expressions.Expression