| | |
| | | Object.defineProperty(exports, "__esModule", { |
| | | value: true |
| | | }); |
| | | exports.matchesPattern = matchesPattern; |
| | | exports.has = has; |
| | | exports.isStatic = isStatic; |
| | | exports.isnt = isnt; |
| | | exports.equals = equals; |
| | | exports.isNodeType = isNodeType; |
| | | exports.canHaveVariableDeclarationOrExpression = canHaveVariableDeclarationOrExpression; |
| | | exports.canSwapBetweenExpressionAndStatement = canSwapBetweenExpressionAndStatement; |
| | | exports.isCompletionRecord = isCompletionRecord; |
| | | exports.isStatementOrBlock = isStatementOrBlock; |
| | | exports.referencesImport = referencesImport; |
| | | exports.getSource = getSource; |
| | | exports.willIMaybeExecuteBefore = willIMaybeExecuteBefore; |
| | | exports._guessExecutionStatusRelativeTo = _guessExecutionStatusRelativeTo; |
| | | exports._guessExecutionStatusRelativeToDifferentFunctions = _guessExecutionStatusRelativeToDifferentFunctions; |
| | | exports.resolve = resolve; |
| | | exports._resolve = _resolve; |
| | | exports.canHaveVariableDeclarationOrExpression = canHaveVariableDeclarationOrExpression; |
| | | exports.canSwapBetweenExpressionAndStatement = canSwapBetweenExpressionAndStatement; |
| | | exports.equals = equals; |
| | | exports.getSource = getSource; |
| | | exports.has = has; |
| | | exports.is = void 0; |
| | | exports.isCompletionRecord = isCompletionRecord; |
| | | exports.isConstantExpression = isConstantExpression; |
| | | exports.isInStrictMode = isInStrictMode; |
| | | exports.is = void 0; |
| | | exports.isNodeType = isNodeType; |
| | | exports.isStatementOrBlock = isStatementOrBlock; |
| | | exports.isStatic = isStatic; |
| | | exports.isnt = isnt; |
| | | exports.matchesPattern = matchesPattern; |
| | | exports.referencesImport = referencesImport; |
| | | exports.resolve = resolve; |
| | | exports.willIMaybeExecuteBefore = willIMaybeExecuteBefore; |
| | | |
| | | var _t = require("@babel/types"); |
| | | |
| | |
| | | |
| | | function referencesImport(moduleSource, importName) { |
| | | if (!this.isReferencedIdentifier()) { |
| | | if ((this.isMemberExpression() || this.isOptionalMemberExpression()) && (this.node.computed ? isStringLiteral(this.node.property, { |
| | | if (this.isJSXMemberExpression() && this.node.property.name === importName || (this.isMemberExpression() || this.isOptionalMemberExpression()) && (this.node.computed ? isStringLiteral(this.node.property, { |
| | | value: importName |
| | | }) : this.node.property.name === importName)) { |
| | | const object = this.get("object"); |