C# Class Rosetta.Translation.PropertyDeclarationTranslationUnit

Class describing properties.
Internal members protected for testability.
Inheritance: Rosetta.Translation.MemberTranslationUnit, ITranslationUnit, ICompoundTranslationUnit
显示文件 Open project: andry-tino/Rosetta Class Usage Examples

Protected Properties

Property Type Description
getStatements ITranslationUnit
hasGet bool
hasSet bool
setStatements ITranslationUnit
type ITranslationUnit

Public Methods

Method 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.

Protected Methods

Method 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 method

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
return PropertyDeclarationTranslationUnit

PropertyDeclarationTranslationUnit() protected method

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

PropertyDeclarationTranslationUnit() protected method

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

PropertyDeclarationTranslationUnit() public method

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

SetGetAccessor() public method

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

SetSetAccessor() public method

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

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

getStatements protected_oe property

protected ITranslationUnit getStatements
return ITranslationUnit

hasGet protected_oe property

protected bool hasGet
return bool

hasSet protected_oe property

protected bool hasSet
return bool

setStatements protected_oe property

protected ITranslationUnit setStatements
return ITranslationUnit

type protected_oe property

protected ITranslationUnit type
return ITranslationUnit