C# Класс Jurassic.Compiler.TemplateLiteralExpression

Represents a template literal expression, with substitutions. Code gen treats template literals with no substitutions just like string literals.
Наследование: Jurassic.Compiler.Expression
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

GenerateCode() публичный Метод

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.
Результат void

TemplateLiteralExpression() публичный Метод

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.
Результат System.Collections.Generic