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

Function skipParameterStart

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

Source from the content-addressed store, hash-verified

34199 token() === 126 /* SyntaxKind.AbstractKeyword */ && lookAhead(nextTokenIsNewKeyword);
34200 }
34201 function skipParameterStart() {
34202 if (ts.isModifierKind(token())) {
34203 // Skip modifiers
34204 parseModifiers();
34205 }
34206 if (isIdentifier() || token() === 108 /* SyntaxKind.ThisKeyword */) {
34207 nextToken();
34208 return true;
34209 }
34210 if (token() === 22 /* SyntaxKind.OpenBracketToken */ || token() === 18 /* SyntaxKind.OpenBraceToken */) {
34211 // Return true if we can parse an array or object binding pattern with no errors
34212 var previousErrorCount = parseDiagnostics.length;
34213 parseIdentifierOrPattern();
34214 return previousErrorCount === parseDiagnostics.length;
34215 }
34216 return false;
34217 }
34218 function isUnambiguouslyStartOfFunctionType() {
34219 nextToken();
34220 if (token() === 21 /* SyntaxKind.CloseParenToken */ || token() === 25 /* SyntaxKind.DotDotDotToken */) {

Callers 1

Calls 5

parseModifiersFunction · 0.85
nextTokenFunction · 0.85
parseIdentifierOrPatternFunction · 0.85
tokenFunction · 0.70
isIdentifierFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…