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

Function parseParameters

test/fixtures/snapshot/typescript.js:33558–33578  ·  view source on GitHub ↗
(flags)

Source from the content-addressed store, hash-verified

33556 return parameters;
33557 }
33558 function parseParameters(flags) {
33559 // FormalParameters [Yield,Await]: (modified)
33560 // [empty]
33561 // FormalParameterList[?Yield,Await]
33562 //
33563 // FormalParameter[Yield,Await]: (modified)
33564 // BindingElement[?Yield,Await]
33565 //
33566 // BindingElement [Yield,Await]: (modified)
33567 // SingleNameBinding[?Yield,?Await]
33568 // BindingPattern[?Yield,?Await]Initializer [In, ?Yield,?Await] opt
33569 //
33570 // SingleNameBinding [Yield,Await]:
33571 // BindingIdentifier[?Yield,?Await]Initializer [In, ?Yield,?Await] opt
33572 if (!parseExpected(20 /* SyntaxKind.OpenParenToken */)) {
33573 return createMissingList();
33574 }
33575 var parameters = parseParametersWorker(flags, /*allowAmbiguity*/ true);
33576 parseExpected(21 /* SyntaxKind.CloseParenToken */);
33577 return parameters;
33578 }
33579 function parseTypeMemberSemicolon() {
33580 // We allow type members to be separated by commas or (possibly ASI) semicolons.
33581 // First check if it was a comma. If so, we're done with the member.

Callers 9

parseJSDocFunctionTypeFunction · 0.85
parseSignatureMemberFunction · 0.85
parseFunctionExpressionFunction · 0.85
parseFunctionDeclarationFunction · 0.85
parseMethodDeclarationFunction · 0.85
parseAccessorDeclarationFunction · 0.85

Calls 3

parseExpectedFunction · 0.85
createMissingListFunction · 0.85
parseParametersWorkerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…