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

Function parseFSharpPipelineBody

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

Source from the content-addressed store, hash-verified

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 {

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