astx
Version:
super powerful structural search and replace for JavaScript and TypeScript to automate your refactoring
20 lines (15 loc) • 622 B
JavaScript
;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = compileCallExpressionMatcher;
var _SpecialMatcher = _interopRequireDefault(require("./SpecialMatcher"));
function compileCallExpressionMatcher(path, compileOptions) {
var callee = path.value.callee;
var n = compileOptions.backend.t.namedTypes;
if (n.Identifier.check(callee)) {
var special = (0, _SpecialMatcher["default"])(path, callee.name, path.get('arguments'), compileOptions);
if (special) return special;
}
}