C# Class Rosetta.Translation.MethodDeclarationTranslationUnit

Class describing methods.
Internal members protected for testability.
Inheritance: MethodSignatureDeclarationTranslationUnit
Mostra file Open project: andry-tino/Rosetta Class Usage Examples

Protected Properties

Property Type Description
statements IEnumerable

Public Methods

Method Description
AddStatement ( ITranslationUnit translationUnit ) : void

Create ( VisibilityToken visibility, ITranslationUnit returnType, ITranslationUnit name ) : MethodDeclarationTranslationUnit

MethodDeclarationTranslationUnit ( MethodDeclarationTranslationUnit other ) : System

Copy initializes a new instance of the MethodDeclarationTranslationUnit class.

For testability.

Translate ( ) : string

Translate the unit into TypeScript.

Protected Methods

Method Description
MethodDeclarationTranslationUnit ( ) : System

Initializes a new instance of the MethodDeclarationTranslationUnit class.

ShouldRenderSemicolon ( ITranslationUnit statement ) : bool

Method Details

AddStatement() public method

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

Create() public static method

public static Create ( VisibilityToken visibility, ITranslationUnit returnType, ITranslationUnit name ) : MethodDeclarationTranslationUnit
visibility VisibilityToken
returnType ITranslationUnit
name ITranslationUnit
return MethodDeclarationTranslationUnit

MethodDeclarationTranslationUnit() protected method

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

MethodDeclarationTranslationUnit() public method

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

ShouldRenderSemicolon() protected static method

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

Translate() public method

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

Property Details

statements protected_oe property

protected IEnumerable statements
return IEnumerable