C# Class Pytocs.CodeModel.CSharpExpressionWriter

Inheritance: ICodeExpressionVisitor
ファイルを表示 Open project: uxmal/pytocs Class Usage Examples

Public Methods

Method Description
CSharpExpressionWriter ( IndentingTextWriter writer ) : System
VisitApplication ( CodeApplicationExpression app ) : void
VisitArrayIndexer ( CodeArrayIndexerExpression aref ) : void
VisitArrayInitializer ( CodeArrayCreateExpression arr ) : void
VisitBinary ( CodeBinaryOperatorExpression bin ) : void
VisitCondition ( CodeConditionExpression c ) : void
VisitFieldReference ( CodeFieldReferenceExpression field ) : void
VisitInitializer ( CodeInitializerExpression i ) : void
VisitLambda ( CodeLambdaExpression l ) : void
VisitMethodReference ( CodeMethodReferenceExpression m ) : void
VisitNamedArgument ( CodeNamedArgument arg ) : void
VisitObjectCreation ( CodeObjectCreateExpression c ) : void
VisitParameterDeclaration ( CodeParameterDeclarationExpression param ) : void
VisitPrimitive ( CodePrimitiveExpression p ) : void
VisitThisReference ( CodeThisReferenceExpression t ) : void
VisitTypeReference ( CodeTypeReference t ) : void
VisitTypeReference ( CodeTypeReferenceExpression t ) : void
VisitUnary ( CodeUnaryOperatorExpression u ) : void
VisitVariableReference ( CodeVariableReferenceExpression var ) : void

Private Methods

Method Description
GenerateTypeName ( string typeName ) : void
OpToString ( CodeOperatorType codeOperatorType ) : string
Write ( CodeExpression e, int prec ) : void
WriteStringLiteral ( Syntax literal ) : void
WriteStringLiteral ( string literal ) : void

Method Details

CSharpExpressionWriter() public method

public CSharpExpressionWriter ( IndentingTextWriter writer ) : System
writer IndentingTextWriter
return System

VisitApplication() public method

public VisitApplication ( CodeApplicationExpression app ) : void
app CodeApplicationExpression
return void

VisitArrayIndexer() public method

public VisitArrayIndexer ( CodeArrayIndexerExpression aref ) : void
aref CodeArrayIndexerExpression
return void

VisitArrayInitializer() public method

public VisitArrayInitializer ( CodeArrayCreateExpression arr ) : void
arr CodeArrayCreateExpression
return void

VisitBinary() public method

public VisitBinary ( CodeBinaryOperatorExpression bin ) : void
bin CodeBinaryOperatorExpression
return void

VisitCondition() public method

public VisitCondition ( CodeConditionExpression c ) : void
c CodeConditionExpression
return void

VisitFieldReference() public method

public VisitFieldReference ( CodeFieldReferenceExpression field ) : void
field CodeFieldReferenceExpression
return void

VisitInitializer() public method

public VisitInitializer ( CodeInitializerExpression i ) : void
i CodeInitializerExpression
return void

VisitLambda() public method

public VisitLambda ( CodeLambdaExpression l ) : void
l CodeLambdaExpression
return void

VisitMethodReference() public method

public VisitMethodReference ( CodeMethodReferenceExpression m ) : void
m CodeMethodReferenceExpression
return void

VisitNamedArgument() public method

public VisitNamedArgument ( CodeNamedArgument arg ) : void
arg CodeNamedArgument
return void

VisitObjectCreation() public method

public VisitObjectCreation ( CodeObjectCreateExpression c ) : void
c CodeObjectCreateExpression
return void

VisitParameterDeclaration() public method

public VisitParameterDeclaration ( CodeParameterDeclarationExpression param ) : void
param CodeParameterDeclarationExpression
return void

VisitPrimitive() public method

public VisitPrimitive ( CodePrimitiveExpression p ) : void
p CodePrimitiveExpression
return void

VisitThisReference() public method

public VisitThisReference ( CodeThisReferenceExpression t ) : void
t CodeThisReferenceExpression
return void

VisitTypeReference() public method

public VisitTypeReference ( CodeTypeReference t ) : void
t CodeTypeReference
return void

VisitTypeReference() public method

public VisitTypeReference ( CodeTypeReferenceExpression t ) : void
t CodeTypeReferenceExpression
return void

VisitUnary() public method

public VisitUnary ( CodeUnaryOperatorExpression u ) : void
u CodeUnaryOperatorExpression
return void

VisitVariableReference() public method

public VisitVariableReference ( CodeVariableReferenceExpression var ) : void
var CodeVariableReferenceExpression
return void