MCPcopy Create free account
hub / github.com/FormidableLabs/babel-plugin-transform-define / identifierComparator

Function identifierComparator

lib/index.js:78–78  ·  view source on GitHub ↗
(nodePath, value)

Source from the content-addressed store, hash-verified

76
77const memberExpressionComparator = (nodePath, value) => nodePath.matchesPattern(value);
78const identifierComparator = (nodePath, value) => nodePath.node.name === value;
79const unaryExpressionComparator = (nodePath, value) => nodePath.node.argument.name === value;
80const TYPEOF_PREFIX = "typeof ";
81

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…