MCPcopy Index your code
hub / github.com/reactjs/react-rails / parseFunctionTypeParams

Function parseFunctionTypeParams

lib/assets/javascripts/JSXTransformer.js:6839–6853  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6837 }
6838
6839 function parseFunctionTypeParams() {
6840 var ret = { params: [], rest: null };
6841 while (lookahead.type === Token.Identifier) {
6842 ret.params.push(parseFunctionTypeParam());
6843 if (!match(')')) {
6844 expect(',');
6845 }
6846 }
6847
6848 if (match('...')) {
6849 lex();
6850 ret.rest = parseFunctionTypeParam();
6851 }
6852 return ret;
6853 }
6854
6855 // The parsing of types roughly parallels the parsing of expressions, and
6856 // primary types are kind of like primary expressions...they're the

Callers 2

parsePrimaryTypeFunction · 0.85
parseDeclareFunctionFunction · 0.85

Calls 4

parseFunctionTypeParamFunction · 0.85
matchFunction · 0.85
expectFunction · 0.85
lexFunction · 0.85

Tested by

no test coverage detected