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

Function ReferencedIdentifier

scripts/babel-plugin-toggle-boolean-flag/plugin.ts:145–151  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

143 }
144 },
145 ReferencedIdentifier(path) {
146 if (value === null) return;
147
148 if (path.node.name === name) {
149 throw path.buildCodeFrameError("This check could not be stripped.");
150 }
151 },
152 ImportDeclaration(path) {
153 if (!path.node.attributes) return;
154

Callers

nothing calls this directly

Calls 1

buildCodeFrameErrorMethod · 0.45

Tested by

no test coverage detected