C# Class Rosetta.Translation.ProgramTranslationUnit

Class describing a program.
Internal members protected for testability.
Inheritance: ITranslationUnit, ICompoundTranslationUnit
Afficher le fichier Open project: andry-tino/Rosetta Class Usage Examples

Protected Properties

Свойство Type Description
content IEnumerable

Méthodes publiques

Méthode Description
AddContent ( ITranslationUnit translationUnit ) : void

Create ( ) : ProgramTranslationUnit

ProgramTranslationUnit ( ProgramTranslationUnit other ) : System

Copy initializes a new instance of the ProgramTranslationUnit class.

For testability.

Translate ( ) : string

Translate the unit into TypeScript.

Méthodes protégées

Méthode Description
ProgramTranslationUnit ( ) : System

Initializes a new instance of the ProgramTranslationUnit class.

Method Details

AddContent() public méthode

public AddContent ( ITranslationUnit translationUnit ) : void
translationUnit ITranslationUnit
Résultat void

Create() public static méthode

public static Create ( ) : ProgramTranslationUnit
Résultat ProgramTranslationUnit

ProgramTranslationUnit() protected méthode

Initializes a new instance of the ProgramTranslationUnit class.
protected ProgramTranslationUnit ( ) : System
Résultat System

ProgramTranslationUnit() public méthode

Copy initializes a new instance of the ProgramTranslationUnit class.
For testability.
public ProgramTranslationUnit ( ProgramTranslationUnit other ) : System
other ProgramTranslationUnit
Résultat System

Translate() public méthode

Translate the unit into TypeScript.
public Translate ( ) : string
Résultat string

Property Details

content protected_oe property

protected IEnumerable content
Résultat IEnumerable