C# Class Rosetta.Translation.KeywordStatementTranslationUnit

Class describing a keyword based statement.
Acts like a decorator for VariableDeKeywordStatementTranslationUnitclarationTranslationUnit. Internal members protected for testability.
Inheritance: StatementTranslationUnit
Exibir arquivo Open project: andry-tino/Rosetta Class Usage Examples

Protected Properties

Property Type Description
keyword string

Public Methods

Method Description
Create ( string keyword ) : KeywordStatementTranslationUnit

KeywordStatementTranslationUnit ( KeywordStatementTranslationUnit other ) : System

Copy initializes a new instance of the keyword class.

For testability.

Translate ( ) : string

Translate the unit into TypeScript.

Protected Methods

Method Description
KeywordStatementTranslationUnit ( ) : System

Initializes a new instance of the KeywordStatementTranslationUnit class.

KeywordStatementTranslationUnit ( int nestingLevel ) : System

Initializes a new instance of the KeywordStatementTranslationUnit class.

Method Details

Create() public static method

public static Create ( string keyword ) : KeywordStatementTranslationUnit
keyword string
return KeywordStatementTranslationUnit

KeywordStatementTranslationUnit() protected method

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

KeywordStatementTranslationUnit() public method

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

KeywordStatementTranslationUnit() protected method

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

Translate() public method

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

Property Details

keyword protected_oe property

protected string keyword
return string