MCPcopy Index your code
hub / github.com/nodejs/node / isNextNonwhitespaceTokenEndOfFile

Function isNextNonwhitespaceTokenEndOfFile

test/fixtures/snapshot/typescript.js:37606–37617  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37604 }
37605 }
37606 function isNextNonwhitespaceTokenEndOfFile() {
37607 // We must use infinite lookahead, as there could be any number of newlines :(
37608 while (true) {
37609 nextTokenJSDoc();
37610 if (token() === 1 /* SyntaxKind.EndOfFileToken */) {
37611 return true;
37612 }
37613 if (!(token() === 5 /* SyntaxKind.WhitespaceTrivia */ || token() === 4 /* SyntaxKind.NewLineTrivia */)) {
37614 return false;
37615 }
37616 }
37617 }
37618 function skipWhitespace() {
37619 if (token() === 5 /* SyntaxKind.WhitespaceTrivia */ || token() === 4 /* SyntaxKind.NewLineTrivia */) {
37620 if (lookAhead(isNextNonwhitespaceTokenEndOfFile)) {

Callers

nothing calls this directly

Calls 2

nextTokenJSDocFunction · 0.85
tokenFunction · 0.70

Tested by

no test coverage detected