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
파일 보기 프로젝트 열기: paulbartrum/jurassic 1 사용 예제들

공개 메소드들

메소드 설명
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