C# Class Babel.Compiler.CodeGeneratingVisitor

Inheritance: AbstractNodeVisitor
Afficher le fichier Open project: shugo/babel

Protected Properties

Свойство Type Description
currentClass ClassDefinition
currentException System.Reflection.Emit.LocalBuilder
currentIter IterDefinition
currentLoop LoopStatement
currentRoutine RoutineDefinition
currentType System.Reflection.Emit.TypeBuilder
exceptionLevel int
ilGenerator System.Reflection.Emit.ILGenerator
inSharedContext bool
localVariableStack LocalVariableStack
nestedTypes System.Collections.ArrayList
program Program
report Report
returnLabel System.Reflection.Emit.Label
typeManager TypeManager

Méthodes publiques

Méthode Description
CodeGeneratingVisitor ( Report report ) : System
VisitAbstractIter ( AbstractIterSignature iter ) : void
VisitAnd ( AndExpression and ) : void
VisitAssign ( AssignStatement assign ) : void
VisitAttr ( AttrDefinition attr ) : void
VisitBoolLiteral ( BoolLiteralExpression boolLiteral ) : void
VisitBreak ( BreakExpression breakExpr ) : void
VisitCall ( CallExpression call ) : void
VisitCase ( CaseStatement caseStmt ) : void
VisitCharLiteral ( CharLiteralExpression charLiteral ) : void
VisitClass ( ClassDefinition cls ) : void
VisitConst ( ConstDefinition constDef ) : void
VisitDeclaration ( DeclarationStatement decl ) : void
VisitException ( ExceptionExpression exception ) : void
VisitExpressionStatement ( ExpressionStatement exprStmt ) : void
VisitIf ( IfStatement ifStmt ) : void
VisitIntLiteral ( IntLiteralExpression intLiteral ) : void
VisitIter ( IterDefinition iter ) : void
VisitIterCall ( IterCallExpression iter ) : void
VisitLocal ( LocalExpression localExpr ) : void
VisitLoop ( LoopStatement loop ) : void
VisitModalExpression ( ModalExpression modalExpr ) : void
VisitNew ( NewExpression newExpr ) : void
VisitOr ( OrExpression or ) : void
VisitProgram ( Program program ) : void
VisitProtect ( ProtectStatement protect ) : void
VisitQuit ( QuitStatement quit ) : void
VisitRaise ( RaiseStatement raise ) : void
VisitReturn ( ReturnStatement ret ) : void
VisitRoutine ( RoutineDefinition routine ) : void
VisitSelf ( SelfExpression self ) : void
VisitSharedAttr ( SharedAttrDefinition attr ) : void
VisitSourceFile ( SourceFile sourceFile ) : void
VisitStatementList ( StatementList statementList ) : void
VisitStrLiteral ( StrLiteralExpression strLiteral ) : void
VisitTypecase ( TypecaseStatement typecase ) : void
VisitVoid ( VoidExpression voidExpr ) : void
VisitVoidTest ( VoidTestExpression voidTest ) : void
VisitYield ( YieldStatement yield ) : void

Méthodes protégées

Méthode Description
BoxIfNecessary ( Type sourceType, Type destinationType ) : void
EmitLdind ( Type type ) : void
EmitStind ( Type type ) : void
EmitVoid ( Type type ) : void
GenerateAdapter ( SupertypingAdapter adapter ) : void
UnboxIfNecessary ( Type sourceType, Type destinationType ) : void

Method Details

BoxIfNecessary() protected méthode

protected BoxIfNecessary ( Type sourceType, Type destinationType ) : void
sourceType System.Type
destinationType System.Type
Résultat void

CodeGeneratingVisitor() public méthode

public CodeGeneratingVisitor ( Report report ) : System
report Report
Résultat System

EmitLdind() protected méthode

protected EmitLdind ( Type type ) : void
type System.Type
Résultat void

EmitStind() protected méthode

protected EmitStind ( Type type ) : void
type System.Type
Résultat void

EmitVoid() protected méthode

protected EmitVoid ( Type type ) : void
type System.Type
Résultat void

GenerateAdapter() protected méthode

protected GenerateAdapter ( SupertypingAdapter adapter ) : void
adapter SupertypingAdapter
Résultat void

UnboxIfNecessary() protected méthode

protected UnboxIfNecessary ( Type sourceType, Type destinationType ) : void
sourceType System.Type
destinationType System.Type
Résultat void

VisitAbstractIter() public méthode

public VisitAbstractIter ( AbstractIterSignature iter ) : void
iter AbstractIterSignature
Résultat void

VisitAnd() public méthode

public VisitAnd ( AndExpression and ) : void
and AndExpression
Résultat void

VisitAssign() public méthode

public VisitAssign ( AssignStatement assign ) : void
assign AssignStatement
Résultat void

VisitAttr() public méthode

public VisitAttr ( AttrDefinition attr ) : void
attr AttrDefinition
Résultat void

VisitBoolLiteral() public méthode

public VisitBoolLiteral ( BoolLiteralExpression boolLiteral ) : void
boolLiteral BoolLiteralExpression
Résultat void

VisitBreak() public méthode

public VisitBreak ( BreakExpression breakExpr ) : void
breakExpr BreakExpression
Résultat void

VisitCall() public méthode

public VisitCall ( CallExpression call ) : void
call CallExpression
Résultat void

VisitCase() public méthode

public VisitCase ( CaseStatement caseStmt ) : void
caseStmt CaseStatement
Résultat void

VisitCharLiteral() public méthode

public VisitCharLiteral ( CharLiteralExpression charLiteral ) : void
charLiteral CharLiteralExpression
Résultat void

VisitClass() public méthode

public VisitClass ( ClassDefinition cls ) : void
cls ClassDefinition
Résultat void

VisitConst() public méthode

public VisitConst ( ConstDefinition constDef ) : void
constDef ConstDefinition
Résultat void

VisitDeclaration() public méthode

public VisitDeclaration ( DeclarationStatement decl ) : void
decl DeclarationStatement
Résultat void

VisitException() public méthode

public VisitException ( ExceptionExpression exception ) : void
exception ExceptionExpression
Résultat void

VisitExpressionStatement() public méthode

public VisitExpressionStatement ( ExpressionStatement exprStmt ) : void
exprStmt ExpressionStatement
Résultat void

VisitIf() public méthode

public VisitIf ( IfStatement ifStmt ) : void
ifStmt IfStatement
Résultat void

VisitIntLiteral() public méthode

public VisitIntLiteral ( IntLiteralExpression intLiteral ) : void
intLiteral IntLiteralExpression
Résultat void

VisitIter() public méthode

public VisitIter ( IterDefinition iter ) : void
iter IterDefinition
Résultat void

VisitIterCall() public méthode

public VisitIterCall ( IterCallExpression iter ) : void
iter IterCallExpression
Résultat void

VisitLocal() public méthode

public VisitLocal ( LocalExpression localExpr ) : void
localExpr LocalExpression
Résultat void

VisitLoop() public méthode

public VisitLoop ( LoopStatement loop ) : void
loop LoopStatement
Résultat void

VisitModalExpression() public méthode

public VisitModalExpression ( ModalExpression modalExpr ) : void
modalExpr ModalExpression
Résultat void

VisitNew() public méthode

public VisitNew ( NewExpression newExpr ) : void
newExpr NewExpression
Résultat void

VisitOr() public méthode

public VisitOr ( OrExpression or ) : void
or OrExpression
Résultat void

VisitProgram() public méthode

public VisitProgram ( Program program ) : void
program Program
Résultat void

VisitProtect() public méthode

public VisitProtect ( ProtectStatement protect ) : void
protect ProtectStatement
Résultat void

VisitQuit() public méthode

public VisitQuit ( QuitStatement quit ) : void
quit QuitStatement
Résultat void

VisitRaise() public méthode

public VisitRaise ( RaiseStatement raise ) : void
raise RaiseStatement
Résultat void

VisitReturn() public méthode

public VisitReturn ( ReturnStatement ret ) : void
ret ReturnStatement
Résultat void

VisitRoutine() public méthode

public VisitRoutine ( RoutineDefinition routine ) : void
routine RoutineDefinition
Résultat void

VisitSelf() public méthode

public VisitSelf ( SelfExpression self ) : void
self SelfExpression
Résultat void

VisitSharedAttr() public méthode

public VisitSharedAttr ( SharedAttrDefinition attr ) : void
attr SharedAttrDefinition
Résultat void

VisitSourceFile() public méthode

public VisitSourceFile ( SourceFile sourceFile ) : void
sourceFile SourceFile
Résultat void

VisitStatementList() public méthode

public VisitStatementList ( StatementList statementList ) : void
statementList StatementList
Résultat void

VisitStrLiteral() public méthode

public VisitStrLiteral ( StrLiteralExpression strLiteral ) : void
strLiteral StrLiteralExpression
Résultat void

VisitTypecase() public méthode

public VisitTypecase ( TypecaseStatement typecase ) : void
typecase TypecaseStatement
Résultat void

VisitVoid() public méthode

public VisitVoid ( VoidExpression voidExpr ) : void
voidExpr VoidExpression
Résultat void

VisitVoidTest() public méthode

public VisitVoidTest ( VoidTestExpression voidTest ) : void
voidTest VoidTestExpression
Résultat void

VisitYield() public méthode

public VisitYield ( YieldStatement yield ) : void
yield YieldStatement
Résultat void

Property Details

currentClass protected_oe property

protected ClassDefinition,Babel.Compiler currentClass
Résultat ClassDefinition

currentException protected_oe property

protected LocalBuilder,System.Reflection.Emit currentException
Résultat System.Reflection.Emit.LocalBuilder

currentIter protected_oe property

protected IterDefinition,Babel.Compiler currentIter
Résultat IterDefinition

currentLoop protected_oe property

protected LoopStatement,Babel.Compiler currentLoop
Résultat LoopStatement

currentRoutine protected_oe property

protected RoutineDefinition,Babel.Compiler currentRoutine
Résultat RoutineDefinition

currentType protected_oe property

protected TypeBuilder,System.Reflection.Emit currentType
Résultat System.Reflection.Emit.TypeBuilder

exceptionLevel protected_oe property

protected int exceptionLevel
Résultat int

ilGenerator protected_oe property

protected ILGenerator,System.Reflection.Emit ilGenerator
Résultat System.Reflection.Emit.ILGenerator

inSharedContext protected_oe property

protected bool inSharedContext
Résultat bool

localVariableStack protected_oe property

protected LocalVariableStack,Babel.Compiler localVariableStack
Résultat LocalVariableStack

nestedTypes protected_oe property

protected ArrayList,System.Collections nestedTypes
Résultat System.Collections.ArrayList

program protected_oe property

protected Program program
Résultat Program

report protected_oe property

protected Report,Babel.Compiler report
Résultat Report

returnLabel protected_oe property

protected Label,System.Reflection.Emit returnLabel
Résultat System.Reflection.Emit.Label

typeManager protected_oe property

protected TypeManager,Babel.Compiler typeManager
Résultat TypeManager