C# Class Jurassic.Compiler.Statement

Represents a javascript statement.
Inheritance: Jurassic.Compiler.AstNode
ファイルを表示 Open project: paulbartrum/jurassic Class Usage Examples

Public Methods

Method Description
GenerateEndOfStatement ( ILGenerator generator, OptimizationInfo optimizationInfo, StatementLocals locals ) : void

Generates CIL for the end of every statement.

GenerateStartOfStatement ( ILGenerator generator, OptimizationInfo optimizationInfo, StatementLocals locals ) : void

Generates CIL for the start of every statement.

Statement ( IList labels ) : System

Creates a new Statement instance.

ToString ( ) : string

Converts the statement to a string.

ToString ( int indentLevel ) : string

Converts the statement to a string.

Method Details

GenerateEndOfStatement() public method

Generates CIL for the end of every statement.
public GenerateEndOfStatement ( ILGenerator generator, OptimizationInfo optimizationInfo, StatementLocals locals ) : void
generator ILGenerator The generator to output the CIL to.
optimizationInfo OptimizationInfo Information about any optimizations that should be performed.
locals StatementLocals Variables common to both GenerateStartOfStatement() and GenerateEndOfStatement().
return void

GenerateStartOfStatement() public method

Generates CIL for the start of every statement.
public GenerateStartOfStatement ( ILGenerator generator, OptimizationInfo optimizationInfo, StatementLocals locals ) : void
generator ILGenerator The generator to output the CIL to.
optimizationInfo OptimizationInfo Information about any optimizations that should be performed.
locals StatementLocals Variables common to both GenerateStartOfStatement() and GenerateEndOfStatement().
return void

Statement() public method

Creates a new Statement instance.
public Statement ( IList labels ) : System
labels IList The labels that are associated with this statement.
return System

ToString() public method

Converts the statement to a string.
public ToString ( ) : string
return string

ToString() public abstract method

Converts the statement to a string.
public abstract ToString ( int indentLevel ) : string
indentLevel int The number of tabs to include before the statement.
return string