MCPcopy Create free account
hub / github.com/reactjs/react-rails / matchAsyncFuncExprOrDecl

Function matchAsyncFuncExprOrDecl

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

Source from the content-addressed store, hash-verified

5783 }
5784
5785 function matchAsyncFuncExprOrDecl() {
5786 var token;
5787
5788 if (matchAsync()) {
5789 token = lookahead2();
5790 if (token.type === Token.Keyword && token.value === 'function') {
5791 return true;
5792 }
5793 }
5794
5795 return false;
5796 }
5797
5798 // 11.1 Primary Expressions
5799

Callers 2

parseStatementFunction · 0.85

Calls 2

matchAsyncFunction · 0.85
lookahead2Function · 0.85

Tested by

no test coverage detected