C# Class Foxoft.Ci.SourceGenerator

Inheritance: ICiStatementVisitor
Datei anzeigen Open project: epi/cito

Public Properties

Property Type Description
CreateTextWriter TextWriterFactory
OutputFile string

Protected Properties

Property Type Description
Indent int

Public Methods

Method Description
ICiStatementVisitor ( CiNativeBlock statement ) : void
StartLine ( ) : void
Visit ( CiAssign assign ) : void
Visit ( CiBlock block ) : void
Visit ( CiBreak stmt ) : void
Visit ( CiConst stmt ) : void
Visit ( CiContinue stmt ) : void
Visit ( CiDelete stmt ) : void
Visit ( CiDoWhile stmt ) : void
Visit ( CiExpr expr ) : void
Visit ( CiFor stmt ) : void
Visit ( CiIf stmt ) : void
Visit ( CiReturn stmt ) : void
Visit ( CiSwitch stmt ) : void
Visit ( CiThrow stmt ) : void
Visit ( CiVar stmt ) : void
Visit ( CiWhile stmt ) : void
Write ( CiCondNotExpr expr ) : void
Write ( CiDocBlock block ) : void
Write ( CiDocPara para ) : void
Write ( CiPostfixExpr expr ) : void
Write ( CiProgram prog ) : void
Write ( CiUnaryExpr expr ) : void
WriteDoc ( string text ) : void
WriteDontClose ( CiCodeDoc doc ) : void

Protected Methods

Method Description
CloseBlock ( ) : void
CloseFile ( ) : void
CreateFile ( string filename ) : void
EndSwitch ( CiSwitch stmt ) : void
GetPriority ( CiExpr expr ) : CiPriority
OpenBlock ( ) : void
OpenClass ( bool isAbstract, CiClass klass, string extendsClause ) : void
StartCase ( ICiStatement stmt ) : void
StartSwitch ( CiSwitch stmt ) : void
ToCamelCase ( string s ) : string
Write ( CiArrayAccess expr ) : void
Write ( CiBinaryExpr expr ) : void
Write ( CiBinaryResourceExpr expr ) : void
Write ( CiCodeDoc doc ) : void
Write ( CiCoercion expr ) : void
Write ( CiCondExpr expr ) : void
Write ( CiExpr expr ) : void
Write ( CiFieldAccess expr ) : void
Write ( CiMethodCall expr ) : void
Write ( CiPropertyAccess expr ) : void
Write ( CiVarAccess expr ) : void
Write ( ICiStatement statements ) : void
Write ( ICiStatement statements, int length ) : void
Write ( char c ) : void
Write ( int i ) : void
Write ( string s ) : void
WriteArguments ( CiMethodCall expr ) : void
WriteBanner ( ) : void
WriteCamelCase ( string s ) : void
WriteChild ( CiExpr parent, CiExpr child ) : void
WriteChild ( CiPriority parentPriority, CiExpr child ) : void
WriteChild ( ICiStatement stmt ) : void
WriteConst ( object value ) : void
WriteContent ( Array array ) : void
WriteDelegateCall ( CiExpr expr ) : void
WriteDoc ( CiMethod method ) : void
WriteFallthrough ( CiExpr expr ) : void
WriteIfOnTrue ( CiIf stmt ) : void
WriteInitializer ( CiArrayType type ) : void
WriteInline ( CiMaybeAssign expr ) : void
WriteLine ( ) : void
WriteLine ( string s ) : void
WriteLowercase ( string s ) : void
WriteLowercaseWithUnderscores ( string s ) : void
WriteMulDiv ( CiPriority firstPriority, CiMethodCall expr ) : void
WriteName ( CiBinaryResource resource ) : void
WriteName ( CiConst konst ) : void
WriteName ( CiMethod method ) : void
WriteNew ( CiType type ) : void
WriteNonAssocChild ( CiExpr parent, CiExpr child ) : void
WriteNonAssocChild ( CiPriority parentPriority, CiExpr child ) : void
WriteOp ( CiBinaryExpr expr ) : void
WriteSum ( CiExpr left, CiExpr right ) : void
WriteUppercaseWithUnderscores ( string s ) : void

Private Methods

Method Description
CreateFileWriter ( string filename ) : TextWriter

Method Details

CloseBlock() protected method

protected CloseBlock ( ) : void
return void

CloseFile() protected method

protected CloseFile ( ) : void
return void

CreateFile() protected method

protected CreateFile ( string filename ) : void
filename string
return void

EndSwitch() protected method

protected EndSwitch ( CiSwitch stmt ) : void
stmt CiSwitch
return void

GetPriority() protected method

protected GetPriority ( CiExpr expr ) : CiPriority
expr CiExpr
return CiPriority

ICiStatementVisitor() public method

public ICiStatementVisitor ( CiNativeBlock statement ) : void
statement CiNativeBlock
return void

OpenBlock() protected method

protected OpenBlock ( ) : void
return void

OpenClass() protected method

protected OpenClass ( bool isAbstract, CiClass klass, string extendsClause ) : void
isAbstract bool
klass CiClass
extendsClause string
return void

StartCase() protected method

protected StartCase ( ICiStatement stmt ) : void
stmt ICiStatement
return void

StartLine() public method

public StartLine ( ) : void
return void

StartSwitch() protected method

protected StartSwitch ( CiSwitch stmt ) : void
stmt CiSwitch
return void

ToCamelCase() protected static method

protected static ToCamelCase ( string s ) : string
s string
return string

Visit() public method

public Visit ( CiAssign assign ) : void
assign CiAssign
return void

Visit() public method

public Visit ( CiBlock block ) : void
block CiBlock
return void

Visit() public method

public Visit ( CiBreak stmt ) : void
stmt CiBreak
return void

Visit() public method

public Visit ( CiConst stmt ) : void
stmt CiConst
return void

Visit() public method

public Visit ( CiContinue stmt ) : void
stmt CiContinue
return void

Visit() public method

public Visit ( CiDelete stmt ) : void
stmt CiDelete
return void

Visit() public method

public Visit ( CiDoWhile stmt ) : void
stmt CiDoWhile
return void

Visit() public method

public Visit ( CiExpr expr ) : void
expr CiExpr
return void

Visit() public method

public Visit ( CiFor stmt ) : void
stmt CiFor
return void

Visit() public method

public Visit ( CiIf stmt ) : void
stmt CiIf
return void

Visit() public method

public Visit ( CiReturn stmt ) : void
stmt CiReturn
return void

Visit() public method

public Visit ( CiSwitch stmt ) : void
stmt CiSwitch
return void

Visit() public abstract method

public abstract Visit ( CiThrow stmt ) : void
stmt CiThrow
return void

Visit() public abstract method

public abstract Visit ( CiVar stmt ) : void
stmt CiVar
return void

Visit() public method

public Visit ( CiWhile stmt ) : void
stmt CiWhile
return void

Write() protected method

protected Write ( CiArrayAccess expr ) : void
expr CiArrayAccess
return void

Write() protected method

protected Write ( CiBinaryExpr expr ) : void
expr CiBinaryExpr
return void

Write() protected method

protected Write ( CiBinaryResourceExpr expr ) : void
expr CiBinaryResourceExpr
return void

Write() protected method

protected Write ( CiCodeDoc doc ) : void
doc CiCodeDoc
return void

Write() protected method

protected Write ( CiCoercion expr ) : void
expr CiCoercion
return void

Write() protected method

protected Write ( CiCondExpr expr ) : void
expr CiCondExpr
return void

Write() public method

public Write ( CiCondNotExpr expr ) : void
expr CiCondNotExpr
return void

Write() public method

public Write ( CiDocBlock block ) : void
block CiDocBlock
return void

Write() public method

public Write ( CiDocPara para ) : void
para CiDocPara
return void

Write() protected method

protected Write ( CiExpr expr ) : void
expr CiExpr
return void

Write() protected method

protected Write ( CiFieldAccess expr ) : void
expr CiFieldAccess
return void

Write() protected method

protected Write ( CiMethodCall expr ) : void
expr CiMethodCall
return void

Write() public method

public Write ( CiPostfixExpr expr ) : void
expr CiPostfixExpr
return void

Write() public abstract method

public abstract Write ( CiProgram prog ) : void
prog CiProgram
return void

Write() protected abstract method

protected abstract Write ( CiPropertyAccess expr ) : void
expr CiPropertyAccess
return void

Write() public method

public Write ( CiUnaryExpr expr ) : void
expr CiUnaryExpr
return void

Write() protected method

protected Write ( CiVarAccess expr ) : void
expr CiVarAccess
return void

Write() protected method

protected Write ( ICiStatement statements ) : void
statements ICiStatement
return void

Write() protected method

protected Write ( ICiStatement statements, int length ) : void
statements ICiStatement
length int
return void

Write() protected method

protected Write ( char c ) : void
c char
return void

Write() protected method

protected Write ( int i ) : void
i int
return void

Write() protected method

protected Write ( string s ) : void
s string
return void

WriteArguments() protected method

protected WriteArguments ( CiMethodCall expr ) : void
expr CiMethodCall
return void

WriteBanner() protected method

protected WriteBanner ( ) : void
return void

WriteCamelCase() protected method

protected WriteCamelCase ( string s ) : void
s string
return void

WriteChild() protected method

protected WriteChild ( CiExpr parent, CiExpr child ) : void
parent CiExpr
child CiExpr
return void

WriteChild() protected method

protected WriteChild ( CiPriority parentPriority, CiExpr child ) : void
parentPriority CiPriority
child CiExpr
return void

WriteChild() protected method

protected WriteChild ( ICiStatement stmt ) : void
stmt ICiStatement
return void

WriteConst() protected method

protected WriteConst ( object value ) : void
value object
return void

WriteContent() protected method

protected WriteContent ( Array array ) : void
array System.Array
return void

WriteDelegateCall() protected method

protected WriteDelegateCall ( CiExpr expr ) : void
expr CiExpr
return void

WriteDoc() protected method

protected WriteDoc ( CiMethod method ) : void
method CiMethod
return void

WriteDoc() public method

public WriteDoc ( string text ) : void
text string
return void

WriteDontClose() public method

public WriteDontClose ( CiCodeDoc doc ) : void
doc CiCodeDoc
return void

WriteFallthrough() protected method

protected WriteFallthrough ( CiExpr expr ) : void
expr CiExpr
return void

WriteIfOnTrue() protected method

protected WriteIfOnTrue ( CiIf stmt ) : void
stmt CiIf
return void

WriteInitializer() protected method

protected WriteInitializer ( CiArrayType type ) : void
type CiArrayType
return void

WriteInline() protected method

protected WriteInline ( CiMaybeAssign expr ) : void
expr CiMaybeAssign
return void

WriteLine() protected method

protected WriteLine ( ) : void
return void

WriteLine() protected method

protected WriteLine ( string s ) : void
s string
return void

WriteLowercase() protected method

protected WriteLowercase ( string s ) : void
s string
return void

WriteLowercaseWithUnderscores() protected method

protected WriteLowercaseWithUnderscores ( string s ) : void
s string
return void

WriteMulDiv() protected method

protected WriteMulDiv ( CiPriority firstPriority, CiMethodCall expr ) : void
firstPriority CiPriority
expr CiMethodCall
return void

WriteName() protected method

protected WriteName ( CiBinaryResource resource ) : void
resource CiBinaryResource
return void

WriteName() protected method

protected WriteName ( CiConst konst ) : void
konst CiConst
return void

WriteName() protected method

protected WriteName ( CiMethod method ) : void
method CiMethod
return void

WriteNew() protected abstract method

protected abstract WriteNew ( CiType type ) : void
type CiType
return void

WriteNonAssocChild() protected method

protected WriteNonAssocChild ( CiExpr parent, CiExpr child ) : void
parent CiExpr
child CiExpr
return void

WriteNonAssocChild() protected method

protected WriteNonAssocChild ( CiPriority parentPriority, CiExpr child ) : void
parentPriority CiPriority
child CiExpr
return void

WriteOp() protected method

protected WriteOp ( CiBinaryExpr expr ) : void
expr CiBinaryExpr
return void

WriteSum() protected method

protected WriteSum ( CiExpr left, CiExpr right ) : void
left CiExpr
right CiExpr
return void

WriteUppercaseWithUnderscores() protected method

protected WriteUppercaseWithUnderscores ( string s ) : void
s string
return void

Property Details

CreateTextWriter public_oe property

public TextWriterFactory CreateTextWriter
return TextWriterFactory

Indent protected_oe property

protected int Indent
return int

OutputFile public_oe property

public string OutputFile
return string