C# Class Rosetta.Translation.StatementsGroupTranslationUnit

Class describing a group of statements.
Inheritance: NestedElementTranslationUnit, ITranslationUnit, ICompoundTranslationUnit
Mostra file Open project: andry-tino/Rosetta Class Usage Examples

Public Methods

Method Description
AddStatement ( ITranslationUnit statement ) : void

Create ( ) : StatementsGroupTranslationUnit

Translate ( ) : string

Translate the unit into TypeScript.

Protected Methods

Method Description
ShouldRenderSemicolon ( ITranslationUnit statement ) : bool
StatementsGroupTranslationUnit ( ) : System

Initializes a new instance of the StatementsGroupTranslationUnit class.

StatementsGroupTranslationUnit ( int nestingLevel ) : System

Initializes a new instance of the StatementsGroupTranslationUnit class.

Method Details

AddStatement() public method

public AddStatement ( ITranslationUnit statement ) : void
statement ITranslationUnit
return void

Create() public static method

public static Create ( ) : StatementsGroupTranslationUnit
return StatementsGroupTranslationUnit

ShouldRenderSemicolon() protected method

protected ShouldRenderSemicolon ( ITranslationUnit statement ) : bool
statement ITranslationUnit
return bool

StatementsGroupTranslationUnit() protected method

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

StatementsGroupTranslationUnit() protected method

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

Translate() public method

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