MCPcopy
hub / github.com/mobxjs/mobx / matchAsync

Function matchAsync

docs/assets/getting-started-assets/javascripts/JSXTransformer.js:5761–5772  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5759 }
5760
5761 function matchAsync() {
5762 var backtrackToken = lookahead,
5763 matches = false
5764
5765 if (matchContextualKeyword("async")) {
5766 lex() // Make sure peekLineTerminator() starts after 'async'.
5767 matches = !peekLineTerminator()
5768 rewind(backtrackToken) // Revert the lex().
5769 }
5770
5771 return matches
5772 }
5773
5774 function matchAwait() {
5775 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…