C# Class Jurassic.Compiler.LiteralExpression

Represents a literal expression.
Inheritance: Jurassic.Compiler.Expression
Datei anzeigen Open project: paulbartrum/jurassic Class Usage Examples

Public Methods

Method Description
Evaluate ( ) : object

Evaluates the expression, if possible.

GenerateCode ( ILGenerator generator, OptimizationInfo optimizationInfo ) : void

Generates CIL for the expression.

LiteralExpression ( object value ) : System

Creates a new instance of LiteralExpression.

ToString ( ) : string

Converts the expression to a string.

Method Details

Evaluate() public method

Evaluates the expression, if possible.
public Evaluate ( ) : object
return object

GenerateCode() public method

Generates CIL for the expression.
public GenerateCode ( ILGenerator generator, OptimizationInfo optimizationInfo ) : void
generator ILGenerator The generator to output the CIL to.
optimizationInfo OptimizationInfo Information about any optimizations that should be performed.
return void

LiteralExpression() public method

Creates a new instance of LiteralExpression.
public LiteralExpression ( object value ) : System
value object The literal value.
return System

ToString() public method

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