Skip to content

Commit a8b13d1

Browse files
committed
StringLiteral.textSourceNode cannot be PrivateName
undo an accidental change that made it so StringLiteral.textSourceNode could be a private name. Signed-off-by: Max Heiber <[email protected]>
1 parent 0b8c723 commit a8b13d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ namespace ts {
11881188

11891189
export interface StringLiteral extends LiteralExpression {
11901190
kind: SyntaxKind.StringLiteral;
1191-
/* @internal */ textSourceNode?: Identifier | PrivateName | StringLiteralLike | NumericLiteral; // Allows a StringLiteral to get its text from another node (used by transforms).
1191+
/* @internal */ textSourceNode?: Identifier | StringLiteralLike | NumericLiteral; // Allows a StringLiteral to get its text from another node (used by transforms).
11921192
/** Note: this is only set when synthesizing a node, not during parsing. */
11931193
/* @internal */ singleQuote?: boolean;
11941194
}

0 commit comments

Comments
 (0)