Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const referencer = require("escope/lib/referencer").default;
const { visitClass, visitProperty } = referencer.prototype;
// visit decorators on classes/properties to resolve their identifiers
referencer.prototype.visitClass = function(node) {
visitDecorators.call(this, node);
visitClass.call(this, node);
};
referencer.prototype.visitProperty = function(node) {
visitDecorators.call(this, node);
visitProperty.call(this, node);
};
function visitDecorators(node) {
if (!node.decorators) {