C# Class Rosetta.Translation.PropertyDeclarationTranslationUnit

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

Protected Properties

Свойство Type Description
getStatements ITranslationUnit
hasGet bool
hasSet bool
setStatements ITranslationUnit
type ITranslationUnit

Méthodes publiques

Méthode Description
Create ( VisibilityToken visibility, ITranslationUnit type, ITranslationUnit name, bool hasGet = true, bool hasSet = true ) : PropertyDeclarationTranslationUnit

PropertyDeclarationTranslationUnit ( PropertyDeclarationTranslationUnit other ) : System

Copy initializes a new instance of the MethodDeclarationTranslationUnit class.

For testability.

SetGetAccessor ( ITranslationUnit translationUnit ) : void

SetSetAccessor ( ITranslationUnit translationUnit ) : void

Translate ( ) : string

Translate the unit into TypeScript.

Méthodes protégées

Méthode Description
PropertyDeclarationTranslationUnit ( ) : System

Initializes a new instance of the PropertyDeclarationTranslationUnit class.

PropertyDeclarationTranslationUnit ( ITranslationUnit name, ITranslationUnit returnType, VisibilityToken visibility ) : System

Initializes a new instance of the PropertyDeclarationTranslationUnit class.

ShouldRenderSemicolon ( ITranslationUnit statement ) : bool

Method Details

Create() public static méthode

public static Create ( VisibilityToken visibility, ITranslationUnit type, ITranslationUnit name, bool hasGet = true, bool hasSet = true ) : PropertyDeclarationTranslationUnit
visibility VisibilityToken
type ITranslationUnit
name ITranslationUnit
hasGet bool
hasSet bool
Résultat PropertyDeclarationTranslationUnit

PropertyDeclarationTranslationUnit() protected méthode

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

PropertyDeclarationTranslationUnit() protected méthode

Initializes a new instance of the PropertyDeclarationTranslationUnit class.
protected PropertyDeclarationTranslationUnit ( ITranslationUnit name, ITranslationUnit returnType, VisibilityToken visibility ) : System
name ITranslationUnit
returnType ITranslationUnit
visibility VisibilityToken
Résultat System

PropertyDeclarationTranslationUnit() public méthode

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

SetGetAccessor() public méthode

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

SetSetAccessor() public méthode

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

ShouldRenderSemicolon() protected static méthode

protected static ShouldRenderSemicolon ( ITranslationUnit statement ) : bool
statement ITranslationUnit
Résultat bool

Translate() public méthode

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

Property Details

getStatements protected_oe property

protected ITranslationUnit getStatements
Résultat ITranslationUnit

hasGet protected_oe property

protected bool hasGet
Résultat bool

hasSet protected_oe property

protected bool hasSet
Résultat bool

setStatements protected_oe property

protected ITranslationUnit setStatements
Résultat ITranslationUnit

type protected_oe property

protected ITranslationUnit type
Résultat ITranslationUnit