C# Class Rosetta.Translation.InterfaceDeclarationTranslationUnit

Translation unit for describing interfaces.
Internal members protected for testability.
Inheritance: ScopedElementTranslationUnit, ITranslationUnit, ICompoundTranslationUnit, ITranslationInjector
Mostra file Open project: andry-tino/Rosetta Class Usage Examples

Protected Properties

Property Type Description
injectedBefore ITranslationUnit
signatures IEnumerable

Public Methods

Method Description
AddExtendedInterface ( ITranslationUnit extendedInterface ) : void

AddSignature ( ITranslationUnit translationUnit ) : void

Create ( VisibilityToken visibility, ITranslationUnit name ) : InterfaceDeclarationTranslationUnit

InterfaceDeclarationTranslationUnit ( InterfaceDeclarationTranslationUnit other ) : System

Copy initializes a new instance of the InterfaceDeclarationTranslationUnit class.

For testability.

Translate ( ) : string

Translate the unit into TypeScript.

Protected Methods

Method Description
InterfaceDeclarationTranslationUnit ( ) : System

Initializes a new instance of the InterfaceDeclarationTranslationUnit class.

Private Methods

Method Description
BuildInterfaceExtensionList ( ) : string

Method Details

AddExtendedInterface() public method

public AddExtendedInterface ( ITranslationUnit extendedInterface ) : void
extendedInterface ITranslationUnit
return void

AddSignature() public method

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

Create() public static method

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

InterfaceDeclarationTranslationUnit() protected method

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

InterfaceDeclarationTranslationUnit() public method

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

Translate() public method

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

Property Details

injectedBefore protected_oe property

protected ITranslationUnit injectedBefore
return ITranslationUnit

signatures protected_oe property

protected IEnumerable signatures
return IEnumerable