(identifierNodePath)
| 69 | * @return {boolean} Indicates if the provided node is an import specifier or references one |
| 70 | */ |
| 71 | const isImportIdentifier = (identifierNodePath) => { |
| 72 | const containerType = get(identifierNodePath, ["container", "type"]); |
| 73 | |
| 74 | return containerType === "ImportDefaultSpecifier" || containerType === "ImportSpecifier"; |
| 75 | }; |
| 76 | |
| 77 | const memberExpressionComparator = (nodePath, value) => nodePath.matchesPattern(value); |
| 78 | const identifierComparator = (nodePath, value) => nodePath.node.name === value; |
no outgoing calls
no test coverage detected
searching dependent graphs…