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

Function enterDisallowIn

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

Source from the content-addressed store, hash-verified

3144
3145 // Same as `enterAllowIn`, but with [~In].
3146 enterDisallowIn(): boolean {
3147 const flags = this.prodParam.currentFlags();
3148 const prodParamToClear = ParamKind.PARAM_IN & flags;
3149 const prodParamToSet =
3150 ParamKind.PARAM_NOT_FSHARP_PIPELINE_DIRECT_BODY & ~flags;
3151 if (prodParamToClear || prodParamToSet) {
3152 this.prodParam.enter(
3153 (flags & ~ParamKind.PARAM_IN) |
3154 ParamKind.PARAM_NOT_FSHARP_PIPELINE_DIRECT_BODY,
3155 );
3156 return true;
3157 }
3158 return false;
3159 }
3160
3161 // Register the use of a topic reference within the current
3162 // topic-binding context.

Callers

nothing calls this directly

Calls 2

currentFlagsMethod · 0.80
enterMethod · 0.45

Tested by

no test coverage detected