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

Function skipWhitespace

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

Source from the content-addressed store, hash-verified

37616 }
37617 }
37618 function skipWhitespace() {
37619 if (token() === 5 /* SyntaxKind.WhitespaceTrivia */ || token() === 4 /* SyntaxKind.NewLineTrivia */) {
37620 if (lookAhead(isNextNonwhitespaceTokenEndOfFile)) {
37621 return; // Don't skip whitespace prior to EoF (or end of comment) - that shouldn't be included in any node's range
37622 }
37623 }
37624 while (token() === 5 /* SyntaxKind.WhitespaceTrivia */ || token() === 4 /* SyntaxKind.NewLineTrivia */) {
37625 nextTokenJSDoc();
37626 }
37627 }
37628 function skipWhitespaceOrAsterisk() {
37629 if (token() === 5 /* SyntaxKind.WhitespaceTrivia */ || token() === 4 /* SyntaxKind.NewLineTrivia */) {
37630 if (lookAhead(isNextNonwhitespaceTokenEndOfFile)) {

Callers 9

parseJSDocLinkFunction · 0.85
parseThisTagFunction · 0.85
parseEnumTagFunction · 0.85
parseTypedefTagFunction · 0.85
parseCallbackTagFunction · 0.85
tryParseChildTagFunction · 0.85

Calls 3

lookAheadFunction · 0.85
nextTokenJSDocFunction · 0.85
tokenFunction · 0.70

Tested by

no test coverage detected