C# Class Rosetta.Translation.Renderings.Data.TranslationUnitBuilder

显示文件 Open project: andry-tino/Rosetta Class Usage Examples

Public Methods

Method Description
BuildBreakStatementTranslationUnit ( ) : ITranslationUnit

BuildClassTranslationUnit ( VisibilityToken visibility, string name, string baseClassName ) : ITranslationUnit

BuildConstructorTranslationUnit ( VisibilityToken visibility, ITranslationUnit statements = null ) : ITranslationUnit

BuildContinueStatementTranslationUnit ( ) : ITranslationUnit

BuildExpressionTranslationUnit ( ITranslationUnit expression ) : ITranslationUnit

BuildExpressionTranslationUnit ( ITranslationUnit invokeeName, ITranslationUnit arguments ) : ITranslationUnit

BuildExpressionTranslationUnit ( OperatorToken operatorToken, int number, bool postfix = true ) : ITranslationUnit

BuildExpressionTranslationUnit ( OperatorToken operatorToken, int number1, int number2 ) : ITranslationUnit

BuildExpressionTranslationUnit ( string memberName, MemberAccessExpressionTranslationUnit accessMethod ) : ITranslationUnit

BuildExpressionTranslationUnit ( string type, string variableName ) : ITranslationUnit

/

BuildIfStatementTranslationUnit ( ITranslationUnit testExpression, IEnumerable bodyStatements, IEnumerable elseStatements = null ) : ITranslationUnit

BuildInterfaceTranslationUnit ( VisibilityToken visibility, string name ) : ITranslationUnit

BuildLiteralTranslationUnit ( bool value ) : ITranslationUnit

BuildLiteralTranslationUnit ( int value ) : ITranslationUnit

BuildLiteralTranslationUnit ( string value ) : ITranslationUnit

BuildMemberTranslationUnit ( VisibilityToken visibility, string type, string name ) : ITranslationUnit

BuildMethodSignatureTranslationUnit ( VisibilityToken visibility, string returnType, string name ) : ITranslationUnit

BuildMethodTranslationUnit ( VisibilityToken visibility, string returnType, string name, ITranslationUnit statements = null ) : ITranslationUnit

BuildModuleTranslationUnit ( string name ) : ITranslationUnit

BuildNullLiteralTranslationUnit ( ) : ITranslationUnit

BuildPropertyTranslationUnit ( VisibilityToken visibility, string returnType, string name, ITranslationUnit getStatements = null, ITranslationUnit setStatements = null ) : ITranslationUnit

BuildReferenceTranslationUnit ( string path ) : ITranslationUnit
BuildReferencesGroupTranslationUnit ( string references ) : ITranslationUnit

BuildReturnStatementTranslationUnit ( ) : ITranslationUnit

BuildReturnStatementTranslationUnit ( ITranslationUnit expression ) : ITranslationUnit

BuildThrowStatementTranslationUnit ( ) : ITranslationUnit

BuildThrowStatementTranslationUnit ( ITranslationUnit expression ) : ITranslationUnit

BuildVariableDeclarationTranslationUnit ( string type, string name, ITranslationUnit expression = null ) : ITranslationUnit

Method Details

BuildBreakStatementTranslationUnit() public static method

public static BuildBreakStatementTranslationUnit ( ) : ITranslationUnit
return ITranslationUnit

BuildClassTranslationUnit() public static method

public static BuildClassTranslationUnit ( VisibilityToken visibility, string name, string baseClassName ) : ITranslationUnit
visibility VisibilityToken
name string
baseClassName string
return ITranslationUnit

BuildConstructorTranslationUnit() public static method

public static BuildConstructorTranslationUnit ( VisibilityToken visibility, ITranslationUnit statements = null ) : ITranslationUnit
visibility VisibilityToken
statements ITranslationUnit
return ITranslationUnit

BuildContinueStatementTranslationUnit() public static method

public static BuildContinueStatementTranslationUnit ( ) : ITranslationUnit
return ITranslationUnit

BuildExpressionTranslationUnit() public static method

public static BuildExpressionTranslationUnit ( ITranslationUnit expression ) : ITranslationUnit
expression ITranslationUnit
return ITranslationUnit

BuildExpressionTranslationUnit() public static method

public static BuildExpressionTranslationUnit ( ITranslationUnit invokeeName, ITranslationUnit arguments ) : ITranslationUnit
invokeeName ITranslationUnit
arguments ITranslationUnit
return ITranslationUnit

BuildExpressionTranslationUnit() public static method

public static BuildExpressionTranslationUnit ( OperatorToken operatorToken, int number, bool postfix = true ) : ITranslationUnit
operatorToken OperatorToken
number int
postfix bool
return ITranslationUnit

BuildExpressionTranslationUnit() public static method

public static BuildExpressionTranslationUnit ( OperatorToken operatorToken, int number1, int number2 ) : ITranslationUnit
operatorToken OperatorToken
number1 int
number2 int
return ITranslationUnit

BuildExpressionTranslationUnit() public static method

public static BuildExpressionTranslationUnit ( string memberName, MemberAccessExpressionTranslationUnit accessMethod ) : ITranslationUnit
memberName string
accessMethod MemberAccessExpressionTranslationUnit
return ITranslationUnit

BuildExpressionTranslationUnit() public static method

/
public static BuildExpressionTranslationUnit ( string type, string variableName ) : ITranslationUnit
type string
variableName string
return ITranslationUnit

BuildIfStatementTranslationUnit() public static method

public static BuildIfStatementTranslationUnit ( ITranslationUnit testExpression, IEnumerable bodyStatements, IEnumerable elseStatements = null ) : ITranslationUnit
testExpression ITranslationUnit
bodyStatements IEnumerable
elseStatements IEnumerable
return ITranslationUnit

BuildInterfaceTranslationUnit() public static method

public static BuildInterfaceTranslationUnit ( VisibilityToken visibility, string name ) : ITranslationUnit
visibility VisibilityToken
name string
return ITranslationUnit

BuildLiteralTranslationUnit() public static method

public static BuildLiteralTranslationUnit ( bool value ) : ITranslationUnit
value bool
return ITranslationUnit

BuildLiteralTranslationUnit() public static method

public static BuildLiteralTranslationUnit ( int value ) : ITranslationUnit
value int
return ITranslationUnit

BuildLiteralTranslationUnit() public static method

public static BuildLiteralTranslationUnit ( string value ) : ITranslationUnit
value string
return ITranslationUnit

BuildMemberTranslationUnit() public static method

public static BuildMemberTranslationUnit ( VisibilityToken visibility, string type, string name ) : ITranslationUnit
visibility VisibilityToken
type string
name string
return ITranslationUnit

BuildMethodSignatureTranslationUnit() public static method

public static BuildMethodSignatureTranslationUnit ( VisibilityToken visibility, string returnType, string name ) : ITranslationUnit
visibility VisibilityToken
returnType string
name string
return ITranslationUnit

BuildMethodTranslationUnit() public static method

public static BuildMethodTranslationUnit ( VisibilityToken visibility, string returnType, string name, ITranslationUnit statements = null ) : ITranslationUnit
visibility VisibilityToken
returnType string
name string
statements ITranslationUnit
return ITranslationUnit

BuildModuleTranslationUnit() public static method

public static BuildModuleTranslationUnit ( string name ) : ITranslationUnit
name string
return ITranslationUnit

BuildNullLiteralTranslationUnit() public static method

public static BuildNullLiteralTranslationUnit ( ) : ITranslationUnit
return ITranslationUnit

BuildPropertyTranslationUnit() public static method

public static BuildPropertyTranslationUnit ( VisibilityToken visibility, string returnType, string name, ITranslationUnit getStatements = null, ITranslationUnit setStatements = null ) : ITranslationUnit
visibility VisibilityToken
returnType string
name string
getStatements ITranslationUnit
setStatements ITranslationUnit
return ITranslationUnit

BuildReferenceTranslationUnit() public static method

public static BuildReferenceTranslationUnit ( string path ) : ITranslationUnit
path string
return ITranslationUnit

BuildReferencesGroupTranslationUnit() public static method

public static BuildReferencesGroupTranslationUnit ( string references ) : ITranslationUnit
references string
return ITranslationUnit

BuildReturnStatementTranslationUnit() public static method

public static BuildReturnStatementTranslationUnit ( ) : ITranslationUnit
return ITranslationUnit

BuildReturnStatementTranslationUnit() public static method

public static BuildReturnStatementTranslationUnit ( ITranslationUnit expression ) : ITranslationUnit
expression ITranslationUnit
return ITranslationUnit

BuildThrowStatementTranslationUnit() public static method

public static BuildThrowStatementTranslationUnit ( ) : ITranslationUnit
return ITranslationUnit

BuildThrowStatementTranslationUnit() public static method

public static BuildThrowStatementTranslationUnit ( ITranslationUnit expression ) : ITranslationUnit
expression ITranslationUnit
return ITranslationUnit

BuildVariableDeclarationTranslationUnit() public static method

public static BuildVariableDeclarationTranslationUnit ( string type, string name, ITranslationUnit expression = null ) : ITranslationUnit
type string
name string
expression ITranslationUnit
return ITranslationUnit