C# 클래스 Rosetta.Translation.ExpressionStatementTranslationUnit

Class describing an expression based statement.
상속: StatementTranslationUnit
파일 보기 프로젝트 열기: andry-tino/Rosetta 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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