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

Function enterAllowIn

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

currentFlagsMethod · 0.80
enterMethod · 0.45

Tested by

no test coverage detected