Skip to content

Commit 77a76c1

Browse files
committed
Revert "Allow synthetic identifiers to exist and give them escapedText"
This reverts commit 422b541.
1 parent 897e10a commit 77a76c1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/services/services.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,10 @@ namespace ts {
172172
const token = scanner.scan();
173173
const textPos = scanner.getTextPos();
174174
if (textPos <= end) {
175-
const node = createNode(token, pos, textPos, parent);
176-
nodes.push(node);
177-
if (isIdentifier(node)) {
178-
node.escapedText = escapeLeadingUnderscores(scanner.getTokenValue());
175+
if (token === SyntaxKind.Identifier) {
176+
Debug.fail(`Did not expect ${Debug.showSyntaxKind(parent)} to have an Identifier in its trivia`);
179177
}
178+
nodes.push(createNode(token, pos, textPos, parent));
180179
}
181180
pos = textPos;
182181
if (token === SyntaxKind.EndOfFileToken) {

0 commit comments

Comments
 (0)