C# Class Jurassic.Compiler.TemplateLiteralExpression

Represents a template literal expression, with substitutions. Code gen treats template literals with no substitutions just like string literals.
Inheritance: Jurassic.Compiler.Expression
Mostrar archivo Open project: paulbartrum/jurassic Class Usage Examples

Public Methods

Method Description
GenerateCode ( ILGenerator generator, OptimizationInfo optimizationInfo ) : void

Generates CIL for the expression.

TemplateLiteralExpression ( List strings, List values, List rawStrings ) : System.Collections.Generic

Creates a new instance of TemplateLiteralExpression.

Method Details

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

TemplateLiteralExpression() public method

Creates a new instance of TemplateLiteralExpression.
public TemplateLiteralExpression ( List strings, List values, List rawStrings ) : System.Collections.Generic
strings List The literal string parts of the template. For example `1${2}3` /// has the string literal parts "1" and "3".
values List The substitution expressions in the template. For example /// `1${2}3` has the substitution expression "2".
rawStrings List The literal string parts of the template, prior to performing /// escape sequence processing.
return System.Collections.Generic