()
| 2841 | } |
| 2842 | |
| 2843 | matchAsyncFunction(): boolean { |
| 2844 | let match = this.matchContextualKeyword('async'); |
| 2845 | if (match) { |
| 2846 | const state = this.scanner.saveState(); |
| 2847 | this.scanner.scanComments(); |
| 2848 | const next = this.scanner.lex(); |
| 2849 | this.scanner.restoreState(state); |
| 2850 | |
| 2851 | match = (state.lineNumber === next.lineNumber) && (next.type === Token.Keyword) && (next.value === 'function'); |
| 2852 | } |
| 2853 | |
| 2854 | return match; |
| 2855 | } |
| 2856 | |
| 2857 | parseFunctionDeclaration(identifierIsOptional?: boolean): Node.AsyncFunctionDeclaration | Node.FunctionDeclaration { |
| 2858 | const node = this.createNode(); |
no test coverage detected