C# Class Rosetta.Translation.LocalDeclarationStatementTranslationUnit

Class describing a local declaration statement.
Acts like a decorator for VariableDeclarationTranslationUnit. Internal members protected for testability.
Inheritance: StatementTranslationUnit
Mostra file Open project: andry-tino/Rosetta Class Usage Examples

Protected Properties

Property Type Description
variableDeclaration VariableDeclarationTranslationUnit

Public Methods

Method Description
Create ( VariableDeclarationTranslationUnit variableDeclaration ) : LocalDeclarationStatementTranslationUnit

LocalDeclarationStatementTranslationUnit ( LocalDeclarationStatementTranslationUnit other ) : System

Copy initializes a new instance of the LocalDeclarationStatementTranslationUnit class.

For testability.

Translate ( ) : string

Translate the unit into TypeScript.

Protected Methods

Method Description
LocalDeclarationStatementTranslationUnit ( ) : System

Initializes a new instance of the LocalDeclarationStatementTranslationUnit class.

LocalDeclarationStatementTranslationUnit ( int nestingLevel ) : System

Initializes a new instance of the LocalDeclarationStatementTranslationUnit class.

Method Details

Create() public static method

public static Create ( VariableDeclarationTranslationUnit variableDeclaration ) : LocalDeclarationStatementTranslationUnit
variableDeclaration VariableDeclarationTranslationUnit
return LocalDeclarationStatementTranslationUnit

LocalDeclarationStatementTranslationUnit() protected method

Initializes a new instance of the LocalDeclarationStatementTranslationUnit class.
protected LocalDeclarationStatementTranslationUnit ( ) : System
return System

LocalDeclarationStatementTranslationUnit() public method

Copy initializes a new instance of the LocalDeclarationStatementTranslationUnit class.
For testability.
public LocalDeclarationStatementTranslationUnit ( LocalDeclarationStatementTranslationUnit other ) : System
other LocalDeclarationStatementTranslationUnit
return System

LocalDeclarationStatementTranslationUnit() protected method

Initializes a new instance of the LocalDeclarationStatementTranslationUnit class.
protected LocalDeclarationStatementTranslationUnit ( int nestingLevel ) : System
nestingLevel int
return System

Translate() public method

Translate the unit into TypeScript.
public Translate ( ) : string
return string

Property Details

variableDeclaration protected_oe property

protected VariableDeclarationTranslationUnit,Rosetta.Translation variableDeclaration
return VariableDeclarationTranslationUnit