@@ -997,13 +997,16 @@ declare namespace ts {
997997 isUnterminated ?: boolean ;
998998 hasExtendedUnicodeEscape ?: boolean ;
999999 }
1000+ export interface TemplateLiteralLikeNode extends LiteralLikeNode {
1001+ rawText ?: string ;
1002+ }
10001003 export interface LiteralExpression extends LiteralLikeNode , PrimaryExpression {
10011004 _literalExpressionBrand : any ;
10021005 }
10031006 export interface RegularExpressionLiteral extends LiteralExpression {
10041007 kind : SyntaxKind . RegularExpressionLiteral ;
10051008 }
1006- export interface NoSubstitutionTemplateLiteral extends LiteralExpression {
1009+ export interface NoSubstitutionTemplateLiteral extends LiteralExpression , TemplateLiteralLikeNode {
10071010 kind : SyntaxKind . NoSubstitutionTemplateLiteral ;
10081011 }
10091012 export enum TokenFlags {
@@ -1020,15 +1023,15 @@ declare namespace ts {
10201023 export interface BigIntLiteral extends LiteralExpression {
10211024 kind : SyntaxKind . BigIntLiteral ;
10221025 }
1023- export interface TemplateHead extends LiteralLikeNode {
1026+ export interface TemplateHead extends TemplateLiteralLikeNode {
10241027 kind : SyntaxKind . TemplateHead ;
10251028 parent : TemplateExpression ;
10261029 }
1027- export interface TemplateMiddle extends LiteralLikeNode {
1030+ export interface TemplateMiddle extends TemplateLiteralLikeNode {
10281031 kind : SyntaxKind . TemplateMiddle ;
10291032 parent : TemplateSpan ;
10301033 }
1031- export interface TemplateTail extends LiteralLikeNode {
1034+ export interface TemplateTail extends TemplateLiteralLikeNode {
10321035 kind : SyntaxKind . TemplateTail ;
10331036 parent : TemplateSpan ;
10341037 }
@@ -3921,10 +3924,10 @@ declare namespace ts {
39213924 function updateConditional ( node : ConditionalExpression , condition : Expression , questionToken : Token < SyntaxKind . QuestionToken > , whenTrue : Expression , colonToken : Token < SyntaxKind . ColonToken > , whenFalse : Expression ) : ConditionalExpression ;
39223925 function createTemplateExpression ( head : TemplateHead , templateSpans : ReadonlyArray < TemplateSpan > ) : TemplateExpression ;
39233926 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 ;
39283931 function createYield ( expression ?: Expression ) : YieldExpression ;
39293932 function createYield ( asteriskToken : AsteriskToken | undefined , expression : Expression ) : YieldExpression ;
39303933 function updateYield ( node : YieldExpression , asteriskToken : AsteriskToken | undefined , expression : Expression ) : YieldExpression ;
0 commit comments