C# Class Rosetta.Translation.ExpressionStatementTranslationUnit

Class describing an expression based statement.
Inheritance: StatementTranslationUnit
Exibir arquivo Open project: andry-tino/Rosetta Class Usage Examples

Protected Properties

Property Type Description
expression ExpressionTranslationUnit
keyword string

Public Methods

Method Description
Create ( ExpressionTranslationUnit expression, string keyword = null ) : ExpressionStatementTranslationUnit

CreateReturn ( ) : ExpressionStatementTranslationUnit

Builds a void return statement.

CreateReturn ( ExpressionTranslationUnit expression ) : ExpressionStatementTranslationUnit

Builds a return statement with the specified expression.

CreateThrow ( ) : ExpressionStatementTranslationUnit

Builds a void throw statement.

CreateThrow ( ExpressionTranslationUnit expression ) : ExpressionStatementTranslationUnit

Builds a throw statement with the specified expression.

ExpressionStatementTranslationUnit ( ExpressionStatementTranslationUnit other ) : System

Copy initializes a new instance of the ExpressionStatementTranslationUnit class.

For testability.

Translate ( ) : string

Translate the unit into TypeScript.

Protected Methods

Method Description
ExpressionStatementTranslationUnit ( ) : System

Initializes a new instance of the ExpressionStatementTranslationUnit class.

ExpressionStatementTranslationUnit ( int nestingLevel ) : System

Initializes a new instance of the ExpressionStatementTranslationUnit class.

Method Details

Create() public static method

public static Create ( ExpressionTranslationUnit expression, string keyword = null ) : ExpressionStatementTranslationUnit
expression ExpressionTranslationUnit
keyword string
return ExpressionStatementTranslationUnit

CreateReturn() public static method

Builds a void return statement.
public static CreateReturn ( ) : ExpressionStatementTranslationUnit
return ExpressionStatementTranslationUnit

CreateReturn() public static method

Builds a return statement with the specified expression.
public static CreateReturn ( ExpressionTranslationUnit expression ) : ExpressionStatementTranslationUnit
expression ExpressionTranslationUnit
return ExpressionStatementTranslationUnit

CreateThrow() public static method

Builds a void throw statement.
public static CreateThrow ( ) : ExpressionStatementTranslationUnit
return ExpressionStatementTranslationUnit

CreateThrow() public static method

Builds a throw statement with the specified expression.
public static CreateThrow ( ExpressionTranslationUnit expression ) : ExpressionStatementTranslationUnit
expression ExpressionTranslationUnit
return ExpressionStatementTranslationUnit

ExpressionStatementTranslationUnit() protected method

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

ExpressionStatementTranslationUnit() public method

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

ExpressionStatementTranslationUnit() protected method

Initializes a new instance of the ExpressionStatementTranslationUnit class.
protected ExpressionStatementTranslationUnit ( int nestingLevel ) : System
nestingLevel int
return System

Translate() public method

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

Property Details

expression protected_oe property

protected ExpressionTranslationUnit,Rosetta.Translation expression
return ExpressionTranslationUnit

keyword protected_oe property

protected string keyword
return string