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

Function parseFunctionTypeParam

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

Source from the content-addressed store, hash-verified

6821 }
6822
6823 function parseFunctionTypeParam() {
6824 var marker = markerCreate(), name, optional = false, typeAnnotation;
6825 name = parseVariableIdentifier();
6826 if (match('?')) {
6827 lex();
6828 optional = true;
6829 }
6830 expect(':');
6831 typeAnnotation = parseType();
6832 return markerApply(marker, delegate.createFunctionTypeParam(
6833 name,
6834 typeAnnotation,
6835 optional
6836 ));
6837 }
6838
6839 function parseFunctionTypeParams() {
6840 var ret = { params: [], rest: null };

Callers 2

parseObjectTypeMethodishFunction · 0.85
parseFunctionTypeParamsFunction · 0.85

Calls 7

markerCreateFunction · 0.85
parseVariableIdentifierFunction · 0.85
matchFunction · 0.85
lexFunction · 0.85
expectFunction · 0.85
parseTypeFunction · 0.85
markerApplyFunction · 0.85

Tested by

no test coverage detected