C# Class Rosetta.Translation.SingleLineCommentTranslationUnit

Translation unit for single line comments.
Inheritance: NestedElementTranslationUnit, ITranslationUnit
ファイルを表示 Open project: andry-tino/Rosetta Class Usage Examples

Protected Properties

Property Type Description
commentToken string

Public Methods

Method Description
Create ( string comment, CommentStyle style = CommentStyle.Normal ) : SingleLineCommentTranslationUnit

Translate ( ) : string

Translate the unit into TypeScript.

Protected Methods

Method Description
SingleLineCommentTranslationUnit ( string comment, string commentToken ) : System

Initializes a new instance of the SingleLineCommentTranslationUnit class.

Private Methods

Method Description
CreateToken ( CommentStyle style ) : string

Method Details

Create() public static method

public static Create ( string comment, CommentStyle style = CommentStyle.Normal ) : SingleLineCommentTranslationUnit
comment string
style CommentStyle
return SingleLineCommentTranslationUnit

SingleLineCommentTranslationUnit() protected method

Initializes a new instance of the SingleLineCommentTranslationUnit class.
protected SingleLineCommentTranslationUnit ( string comment, string commentToken ) : System
comment string
commentToken string
return System

Translate() public method

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

Property Details

commentToken protected_oe property

protected string commentToken
return string