C# Class Jurassic.Compiler.LiteralExpression

Represents a literal expression.
Inheritance: Jurassic.Compiler.Expression
Afficher le fichier Open project: paulbartrum/jurassic Class Usage Examples

Méthodes publiques

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

Evaluates the expression, if possible.
public Evaluate ( ) : object
Résultat object

GenerateCode() public méthode

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

LiteralExpression() public méthode

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

ToString() public méthode

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