(node, props, path, state)
| 101 | } |
| 102 | |
| 103 | buildExpressionHandler(node, props, path, state) { |
| 104 | const file = (path && path.hub && path.hub.file) || (state && state.file); |
| 105 | const { types } = this; |
| 106 | const pluginState = this.getPluginState(state); |
| 107 | props.forEach(prop => { |
| 108 | if (!types.isIdentifier(node[prop])) return; |
| 109 | if ( |
| 110 | pluginState.specified[node[prop].name] && |
| 111 | types.isImportSpecifier(path.scope.getBinding(node[prop].name).path) |
| 112 | ) { |
| 113 | node[prop] = this.importMethod(pluginState.specified[node[prop].name], file, pluginState); // eslint-disable-line |
| 114 | } |
| 115 | }); |
| 116 | } |
| 117 | |
| 118 | buildDeclaratorHandler(node, prop, path, state) { |
| 119 | const file = (path && path.hub && path.hub.file) || (state && state.file); |
no test coverage detected