C# Class Rosetta.Translation.VariableDeclarationTranslationUnit

Class describing a method signature (no body).
Inheritance: NestedElementTranslationUnit, ITranslationUnit
Show file Open project: andry-tino/Rosetta Class Usage Examples

Protected Properties

Property Type Description
expressions ITranslationUnit[]
names ITranslationUnit[]
shouldRenderDeclarationKeyword bool
type ITranslationUnit

Private Properties

Property Type Description
TranslateSingleDeclaration string

Public Methods

Method Description
Create ( ITranslationUnit type, ITranslationUnit names, ITranslationUnit expressions = null, bool shouldRenderDeclarationKeyword = true ) : VariableDeclarationTranslationUnit

Translate ( ) : string

Translate the unit into TypeScript.

VariableDeclarationTranslationUnit ( VariableDeclarationTranslationUnit other ) : System

Copy initializes a new instance of the VariableDeclarationTranslationUnit class.

For testability.

Protected Methods

Method Description
VariableDeclarationTranslationUnit ( ) : System

Initializes a new instance of the VariableDeclarationTranslationUnit class.

VariableDeclarationTranslationUnit ( int nestingLevel ) : System

Initializes a new instance of the VariableDeclarationTranslationUnit class.

Private Methods

Method Description
TranslateSingleDeclaration ( ) : string

Method Details

Create() public static method

public static Create ( ITranslationUnit type, ITranslationUnit names, ITranslationUnit expressions = null, bool shouldRenderDeclarationKeyword = true ) : VariableDeclarationTranslationUnit
type ITranslationUnit
names ITranslationUnit
expressions ITranslationUnit
shouldRenderDeclarationKeyword bool
return VariableDeclarationTranslationUnit

Translate() public method

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

VariableDeclarationTranslationUnit() protected method

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

VariableDeclarationTranslationUnit() public method

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

VariableDeclarationTranslationUnit() protected method

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

Property Details

expressions protected property

protected ITranslationUnit[] expressions
return ITranslationUnit[]

names protected property

protected ITranslationUnit[] names
return ITranslationUnit[]

shouldRenderDeclarationKeyword protected property

protected bool shouldRenderDeclarationKeyword
return bool

type protected property

protected ITranslationUnit type
return ITranslationUnit