UNPKG

eslint-plugin-obsidian

Version:

ESLint rules for Obsidian

19 lines 563 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Decorator = void 0; const ast_1 = require("../utils/ast"); const property_1 = require("./property"); class Decorator { constructor(node) { this.node = node; } get expression() { return this.node.expression; } getProperty(name) { const property = (0, ast_1.getDecoratorProperty)(this.node, name); return property && new property_1.Property(property); } } exports.Decorator = Decorator; //# sourceMappingURL=decorator.js.map