@@ -997,13 +997,16 @@ declare namespace ts {
997
997
isUnterminated ?: boolean ;
998
998
hasExtendedUnicodeEscape ?: boolean ;
999
999
}
1000
+ export interface TemplateLiteralLikeNode extends LiteralLikeNode {
1001
+ rawText ?: string ;
1002
+ }
1000
1003
export interface LiteralExpression extends LiteralLikeNode , PrimaryExpression {
1001
1004
_literalExpressionBrand : any ;
1002
1005
}
1003
1006
export interface RegularExpressionLiteral extends LiteralExpression {
1004
1007
kind : SyntaxKind . RegularExpressionLiteral ;
1005
1008
}
1006
- export interface NoSubstitutionTemplateLiteral extends LiteralExpression {
1009
+ export interface NoSubstitutionTemplateLiteral extends LiteralExpression , TemplateLiteralLikeNode {
1007
1010
kind : SyntaxKind . NoSubstitutionTemplateLiteral ;
1008
1011
}
1009
1012
export enum TokenFlags {
@@ -1020,15 +1023,15 @@ declare namespace ts {
1020
1023
export interface BigIntLiteral extends LiteralExpression {
1021
1024
kind : SyntaxKind . BigIntLiteral ;
1022
1025
}
1023
- export interface TemplateHead extends LiteralLikeNode {
1026
+ export interface TemplateHead extends TemplateLiteralLikeNode {
1024
1027
kind : SyntaxKind . TemplateHead ;
1025
1028
parent : TemplateExpression ;
1026
1029
}
1027
- export interface TemplateMiddle extends LiteralLikeNode {
1030
+ export interface TemplateMiddle extends TemplateLiteralLikeNode {
1028
1031
kind : SyntaxKind . TemplateMiddle ;
1029
1032
parent : TemplateSpan ;
1030
1033
}
1031
- export interface TemplateTail extends LiteralLikeNode {
1034
+ export interface TemplateTail extends TemplateLiteralLikeNode {
1032
1035
kind : SyntaxKind . TemplateTail ;
1033
1036
parent : TemplateSpan ;
1034
1037
}
@@ -3921,10 +3924,10 @@ declare namespace ts {
3921
3924
function updateConditional ( node : ConditionalExpression , condition : Expression , questionToken : Token < SyntaxKind . QuestionToken > , whenTrue : Expression , colonToken : Token < SyntaxKind . ColonToken > , whenFalse : Expression ) : ConditionalExpression ;
3922
3925
function createTemplateExpression ( head : TemplateHead , templateSpans : ReadonlyArray < TemplateSpan > ) : TemplateExpression ;
3923
3926
function updateTemplateExpression ( node : TemplateExpression , head : TemplateHead , templateSpans : ReadonlyArray < TemplateSpan > ) : TemplateExpression ;
3924
- function createTemplateHead ( text : string ) : TemplateHead ;
3925
- function createTemplateMiddle ( text : string ) : TemplateMiddle ;
3926
- function createTemplateTail ( text : string ) : TemplateTail ;
3927
- function createNoSubstitutionTemplateLiteral ( text : string ) : NoSubstitutionTemplateLiteral ;
3927
+ function createTemplateHead ( text : string , rawText ?: string ) : TemplateHead ;
3928
+ function createTemplateMiddle ( text : string , rawText ?: string ) : TemplateMiddle ;
3929
+ function createTemplateTail ( text : string , rawText ?: string ) : TemplateTail ;
3930
+ function createNoSubstitutionTemplateLiteral ( text : string , rawText ?: string ) : NoSubstitutionTemplateLiteral ;
3928
3931
function createYield ( expression ?: Expression ) : YieldExpression ;
3929
3932
function createYield ( asteriskToken : AsteriskToken | undefined , expression : Expression ) : YieldExpression ;
3930
3933
function updateYield ( node : YieldExpression , asteriskToken : AsteriskToken | undefined , expression : Expression ) : YieldExpression ;
0 commit comments