C# Class Jurassic.Compiler.Statement

Represents a javascript statement.
Inheritance: Jurassic.Compiler.AstNode
Afficher le fichier Open project: paulbartrum/jurassic Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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().
Résultat void

GenerateStartOfStatement() public méthode

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().
Résultat void

Statement() public méthode

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

ToString() public méthode

Converts the statement to a string.
public ToString ( ) : string
Résultat string

ToString() public abstract méthode

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