MCPcopy Create free account
hub / github.com/babel/babel / parseFSharpPipelineBody

Function parseFSharpPipelineBody

packages/babel-parser/src/parser/expression.ts:3175–3198  ·  view source on GitHub ↗
(this: Parser, prec: number)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 5

currentFlagsMethod · 0.80
nextMethod · 0.80
parseExprOpMethod · 0.80
enterMethod · 0.45
exitMethod · 0.45

Tested by

no test coverage detected