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

Function matchAsync

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

Source from the content-addressed store, hash-verified

5255 }
5256
5257 function matchAsync() {
5258 var backtrackToken = lookahead, matches = false;
5259
5260 if (matchContextualKeyword('async')) {
5261 lex(); // Make sure peekLineTerminator() starts after 'async'.
5262 matches = !peekLineTerminator();
5263 rewind(backtrackToken); // Revert the lex().
5264 }
5265
5266 return matches;
5267 }
5268
5269 function matchAwait() {
5270 return state.awaitAllowed && matchContextualKeyword('await');

Callers 5

parseObjectPropertyFunction · 0.85
matchAsyncFuncExprOrDeclFunction · 0.85
parseFunctionDeclarationFunction · 0.85
parseFunctionExpressionFunction · 0.85

Calls 4

matchContextualKeywordFunction · 0.85
lexFunction · 0.85
peekLineTerminatorFunction · 0.85
rewindFunction · 0.85

Tested by

no test coverage detected