C# Class Boo.Lang.Compiler.Steps.GeneratorMethodProcessor

Inheritance: Boo.Lang.Compiler.Steps.AbstractTransformerCompilerStep
Datei anzeigen Open project: boo/boo-lang Class Usage Examples

Public Methods

Method Description
EnterTryStatement ( Boo.Lang.Compiler.Ast.TryStatement node ) : bool
GeneratorMethodProcessor ( CompilerContext context, Boo.Lang.Compiler.TypeSystem.InternalMethod method ) : System.Collections
LeaveTryStatement ( Boo.Lang.Compiler.Ast.TryStatement node ) : void
LeaveYieldStatement ( Boo.Lang.Compiler.Ast.YieldStatement node ) : void
OnReferenceExpression ( ReferenceExpression node ) : void
OnSelfLiteralExpression ( Boo.Lang.Compiler.Ast.SelfLiteralExpression node ) : void
Run ( ) : void

Private Methods

Method Description
CallMethodOnSelf ( IMethod method ) : MethodInvocationExpression
ConvertTryStatement ( TryStatementInfo currentTry ) : void
CreateConstructor ( BooClassBuilder builder ) : BooMethodBuilder
CreateDisposeMethod ( ) : IMethod
CreateEnumerableConstructor ( ) : void
CreateEnumerator ( ) : void
CreateEnumeratorConstructor ( ) : void
CreateGetEnumerator ( Expression enumeratorExpression ) : void
CreateGetEnumeratorInvocation ( MethodInvocationExpression enumerableConstructorInvocation ) : MethodInvocationExpression
CreateLabel ( Node sourceNode ) : Boo.Lang.Compiler.Ast.LabelStatement
CreateMoveNext ( ) : void
CreateYieldInvocation ( Expression value, int newState ) : MethodInvocationExpression
DeclareFieldInitializedFromConstructorParameter ( BooClassBuilder type, BooMethodBuilder constructor, string parameterName, IType parameterType ) : Boo.Lang.Compiler.Ast.Field
FixGeneratorMethodBody ( MethodInvocationExpression enumerableConstructorInvocation ) : void
GeneratorReturnsIEnumerator ( ) : bool
GetDefaultYieldValue ( ) : Expression
GetGetEnumeratorBuilder ( ) : BooMethodBuilder
GetGetEnumeratorEntity ( ) : Boo.Lang.Compiler.TypeSystem.InternalMethod
InitializeFieldFromConstructorParameter ( BooMethodBuilder constructor, Boo.Lang.Compiler.Ast.Field field, string parameterName, IType parameterType ) : void
PropagateFromEnumerableToEnumerator ( MethodInvocationExpression enumeratorConstructorInvocation, string parameterName, IType parameterType ) : void
PropagateReferences ( MethodInvocationExpression enumerableConstructorInvocation, MethodInvocationExpression enumeratorConstructorInvocation ) : void
SetStateTo ( int num ) : Boo.Lang.Compiler.Ast.BinaryExpression

Method Details

EnterTryStatement() public method

public EnterTryStatement ( Boo.Lang.Compiler.Ast.TryStatement node ) : bool
node Boo.Lang.Compiler.Ast.TryStatement
return bool

GeneratorMethodProcessor() public method

public GeneratorMethodProcessor ( CompilerContext context, Boo.Lang.Compiler.TypeSystem.InternalMethod method ) : System.Collections
context Boo.Lang.Compiler.CompilerContext
method Boo.Lang.Compiler.TypeSystem.InternalMethod
return System.Collections

LeaveTryStatement() public method

public LeaveTryStatement ( Boo.Lang.Compiler.Ast.TryStatement node ) : void
node Boo.Lang.Compiler.Ast.TryStatement
return void

LeaveYieldStatement() public method

public LeaveYieldStatement ( Boo.Lang.Compiler.Ast.YieldStatement node ) : void
node Boo.Lang.Compiler.Ast.YieldStatement
return void

OnReferenceExpression() public method

public OnReferenceExpression ( ReferenceExpression node ) : void
node Boo.Lang.Compiler.Ast.ReferenceExpression
return void

OnSelfLiteralExpression() public method

public OnSelfLiteralExpression ( Boo.Lang.Compiler.Ast.SelfLiteralExpression node ) : void
node Boo.Lang.Compiler.Ast.SelfLiteralExpression
return void

Run() public method

public Run ( ) : void
return void