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