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

Function enterDisallowIn

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

Source from the content-addressed store, hash-verified

3136
3137 // Same as `enterAllowIn`, but with [~In].
3138 enterDisallowIn(): boolean {
3139 const flags = this.prodParam.currentFlags();
3140 const prodParamToClear = ParamKind.PARAM_IN & flags;
3141 const prodParamToSet =
3142 ParamKind.PARAM_NOT_FSHARP_PIPELINE_DIRECT_BODY & ~flags;
3143 if (prodParamToClear || prodParamToSet) {
3144 this.prodParam.enter(
3145 (flags & ~ParamKind.PARAM_IN) |
3146 ParamKind.PARAM_NOT_FSHARP_PIPELINE_DIRECT_BODY,
3147 );
3148 return true;
3149 }
3150 return false;
3151 }
3152
3153 // Register the use of a topic reference within the current
3154 // topic-binding context.

Callers

nothing calls this directly

Calls 2

currentFlagsMethod · 0.80
enterMethod · 0.45

Tested by

no test coverage detected