C# Класс Rosetta.Translation.ExpressionStatementTranslationUnit

Class describing an expression based statement.
Наследование: StatementTranslationUnit
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
expression ExpressionTranslationUnit
keyword string

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
ExpressionStatementTranslationUnit ( ) : System

Initializes a new instance of the ExpressionStatementTranslationUnit class.

ExpressionStatementTranslationUnit ( int nestingLevel ) : System

Initializes a new instance of the ExpressionStatementTranslationUnit class.

Описание методов

Create() публичный статический Метод

public static Create ( ExpressionTranslationUnit expression, string keyword = null ) : ExpressionStatementTranslationUnit
expression ExpressionTranslationUnit
keyword string
Результат ExpressionStatementTranslationUnit

CreateReturn() публичный статический Метод

Builds a void return statement.
public static CreateReturn ( ) : ExpressionStatementTranslationUnit
Результат ExpressionStatementTranslationUnit

CreateReturn() публичный статический Метод

Builds a return statement with the specified expression.
public static CreateReturn ( ExpressionTranslationUnit expression ) : ExpressionStatementTranslationUnit
expression ExpressionTranslationUnit
Результат ExpressionStatementTranslationUnit

CreateThrow() публичный статический Метод

Builds a void throw statement.
public static CreateThrow ( ) : ExpressionStatementTranslationUnit
Результат ExpressionStatementTranslationUnit

CreateThrow() публичный статический Метод

Builds a throw statement with the specified expression.
public static CreateThrow ( ExpressionTranslationUnit expression ) : ExpressionStatementTranslationUnit
expression ExpressionTranslationUnit
Результат ExpressionStatementTranslationUnit

ExpressionStatementTranslationUnit() защищенный Метод

Initializes a new instance of the ExpressionStatementTranslationUnit class.
protected ExpressionStatementTranslationUnit ( ) : System
Результат System

ExpressionStatementTranslationUnit() публичный Метод

Copy initializes a new instance of the ExpressionStatementTranslationUnit class.
For testability.
public ExpressionStatementTranslationUnit ( ExpressionStatementTranslationUnit other ) : System
other ExpressionStatementTranslationUnit
Результат System

ExpressionStatementTranslationUnit() защищенный Метод

Initializes a new instance of the ExpressionStatementTranslationUnit class.
protected ExpressionStatementTranslationUnit ( int nestingLevel ) : System
nestingLevel int
Результат System

Translate() публичный Метод

Translate the unit into TypeScript.
public Translate ( ) : string
Результат string

Описание свойств

expression защищенное свойство

protected ExpressionTranslationUnit,Rosetta.Translation expression
Результат ExpressionTranslationUnit

keyword защищенное свойство

protected string keyword
Результат string