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

Function enterAllowIn

packages/babel-parser/src/parser/expression.ts:3121–3135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3119 // case the caller must call `this.prodParam.exit()`.
3120 // Lets hot-path callers manage the frame without allocating a closure.
3121 enterAllowIn(): boolean {
3122 const flags = this.prodParam.currentFlags();
3123 const prodParamToSet =
3124 (ParamKind.PARAM_IN | ParamKind.PARAM_NOT_FSHARP_PIPELINE_DIRECT_BODY) &
3125 ~flags;
3126 if (prodParamToSet) {
3127 this.prodParam.enter(
3128 flags |
3129 ParamKind.PARAM_IN |
3130 ParamKind.PARAM_NOT_FSHARP_PIPELINE_DIRECT_BODY,
3131 );
3132 return true;
3133 }
3134 return false;
3135 }
3136
3137 // Same as `enterAllowIn`, but with [~In].
3138 enterDisallowIn(): boolean {

Callers

nothing calls this directly

Calls 2

currentFlagsMethod · 0.80
enterMethod · 0.45

Tested by

no test coverage detected