(this: Parser, prec: number)
| 3165 | } |
| 3166 | |
| 3167 | parseFSharpPipelineBody(this: Parser, prec: number): N.Expression { |
| 3168 | const startLoc = this.state.startLoc; |
| 3169 | |
| 3170 | this.prodParam.enter( |
| 3171 | this.prodParam.currentFlags() & |
| 3172 | ~ParamKind.PARAM_NOT_FSHARP_PIPELINE_DIRECT_BODY, |
| 3173 | ); |
| 3174 | |
| 3175 | let ret; |
| 3176 | if (this.isContextual(tt._await) && this.recordAwaitIfAllowed()) { |
| 3177 | this.next(); |
| 3178 | ret = this.parseAwait(startLoc, true); |
| 3179 | const nextOp = this.state.type; |
| 3180 | if (nextOp !== tt.pipeline && this.isBinaryOperator(nextOp)) { |
| 3181 | this.raise(Errors.PipelineUnparenthesized, startLoc); |
| 3182 | } |
| 3183 | } else { |
| 3184 | this.state.canStartArrow = true; |
| 3185 | ret = this.parseExprOp(this.parseMaybeUnaryOrPrivate(), startLoc, prec); |
| 3186 | } |
| 3187 | |
| 3188 | this.prodParam.exit(); |
| 3189 | return ret; |
| 3190 | } |
| 3191 | |
| 3192 | // https://github.com/tc39/proposal-js-module-blocks |
| 3193 | parseModuleExpression(this: Parser): N.ModuleExpression { |
nothing calls this directly
no test coverage detected