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 46b1a8c commit b13f83eCopy full SHA for b13f83e
src/compiler/parser.ts
@@ -1827,12 +1827,10 @@ namespace ts {
1827
return node;
1828
}
1829
1830
- function consumeNode<T extends TextRange | undefined>(node: T): T {
1831
- if (node) {
1832
- // Move the scanner so it is after the node we just consumed.
1833
- scanner.setTextPos(node.end);
1834
- nextToken();
1835
- }
+ function consumeNode(node: Node): Node {
+ // Move the scanner so it is after the node we just consumed.
+ scanner.setTextPos(node.end);
+ nextToken();
1836
1837
1838
0 commit comments