C# Class AjTalk.Compilers.Javascript.Compiler

Inheritance: AbstractCompiler
显示文件 Open project: ajlopez/AjTalk Class Usage Examples

Public Methods

Method Description
Compiler ( SourceWriter writer ) : System
OldVisit ( MessageExpression expression ) : void
Visit ( ArrayExpression expression ) : void
Visit ( BlockExpression expression ) : void
Visit ( ClassModel @class ) : void
Visit ( ClassVariableExpression expression ) : void
Visit ( CodeModel model ) : void
Visit ( ConstantExpression expression ) : void
Visit ( DynamicArrayExpression expression ) : void
Visit ( FluentMessageExpression expression ) : void
Visit ( FreeBlockExpression expression ) : void
Visit ( IEnumerable expressions ) : void
Visit ( InstanceVariableExpression expression ) : void
Visit ( MessageExpression expression ) : void
Visit ( MethodModel method ) : void
Visit ( PrimitiveExpression expression ) : void
Visit ( ReturnExpression expression ) : void
Visit ( SelfExpression expression ) : void
Visit ( SetExpression expression ) : void
Visit ( SymbolExpression expression ) : void
Visit ( VariableExpression expression ) : void
Write ( string text ) : void
WriteLine ( ) : void
WriteLine ( string line ) : void
WriteLineEnd ( string line ) : void
WriteLineStart ( string line ) : void

Protected Methods

Method Description
ToMethodName ( string name ) : string
ToVariableName ( string name ) : string

Private Methods

Method Description
OperatorHasMethodName ( string name ) : bool
OperatorToJsOperator ( string name ) : string
OperatorToMethodName ( string name ) : string

Method Details

Compiler() public method

public Compiler ( SourceWriter writer ) : System
writer SourceWriter
return System

OldVisit() public method

public OldVisit ( MessageExpression expression ) : void
expression AjTalk.Model.MessageExpression
return void

ToMethodName() protected static method

protected static ToMethodName ( string name ) : string
name string
return string

ToVariableName() protected static method

protected static ToVariableName ( string name ) : string
name string
return string

Visit() public method

public Visit ( ArrayExpression expression ) : void
expression AjTalk.Model.ArrayExpression
return void

Visit() public method

public Visit ( BlockExpression expression ) : void
expression AjTalk.Model.BlockExpression
return void

Visit() public method

public Visit ( ClassModel @class ) : void
@class AjTalk.Model.ClassModel
return void

Visit() public method

public Visit ( ClassVariableExpression expression ) : void
expression AjTalk.Model.ClassVariableExpression
return void

Visit() public method

public Visit ( CodeModel model ) : void
model AjTalk.Model.CodeModel
return void

Visit() public method

public Visit ( ConstantExpression expression ) : void
expression AjTalk.Model.ConstantExpression
return void

Visit() public method

public Visit ( DynamicArrayExpression expression ) : void
expression AjTalk.Model.DynamicArrayExpression
return void

Visit() public method

public Visit ( FluentMessageExpression expression ) : void
expression AjTalk.Model.FluentMessageExpression
return void

Visit() public method

public Visit ( FreeBlockExpression expression ) : void
expression AjTalk.Model.FreeBlockExpression
return void

Visit() public method

public Visit ( IEnumerable expressions ) : void
expressions IEnumerable
return void

Visit() public method

public Visit ( InstanceVariableExpression expression ) : void
expression AjTalk.Model.InstanceVariableExpression
return void

Visit() public method

public Visit ( MessageExpression expression ) : void
expression AjTalk.Model.MessageExpression
return void

Visit() public method

public Visit ( MethodModel method ) : void
method AjTalk.Model.MethodModel
return void

Visit() public method

public Visit ( PrimitiveExpression expression ) : void
expression AjTalk.Model.PrimitiveExpression
return void

Visit() public method

public Visit ( ReturnExpression expression ) : void
expression AjTalk.Model.ReturnExpression
return void

Visit() public method

public Visit ( SelfExpression expression ) : void
expression AjTalk.Model.SelfExpression
return void

Visit() public method

public Visit ( SetExpression expression ) : void
expression AjTalk.Model.SetExpression
return void

Visit() public method

public Visit ( SymbolExpression expression ) : void
expression AjTalk.Model.SymbolExpression
return void

Visit() public method

public Visit ( VariableExpression expression ) : void
expression AjTalk.Model.VariableExpression
return void

Write() public method

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

WriteLine() public method

public WriteLine ( ) : void
return void

WriteLine() public method

public WriteLine ( string line ) : void
line string
return void

WriteLineEnd() public method

public WriteLineEnd ( string line ) : void
line string
return void

WriteLineStart() public method

public WriteLineStart ( string line ) : void
line string
return void