We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 897e10a commit 77a76c1Copy full SHA for 77a76c1
src/services/services.ts
@@ -172,11 +172,10 @@ namespace ts {
172
const token = scanner.scan();
173
const textPos = scanner.getTextPos();
174
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());
+ if (token === SyntaxKind.Identifier) {
+ Debug.fail(`Did not expect ${Debug.showSyntaxKind(parent)} to have an Identifier in its trivia`);
179
}
+ nodes.push(createNode(token, pos, textPos, parent));
180
181
pos = textPos;
182
if (token === SyntaxKind.EndOfFileToken) {
0 commit comments