UNPKG

eslint-plugin-obsidian

Version:

ESLint rules for Obsidian

32 lines 933 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CallExpression = void 0; const identifier_1 = require("./identifier"); const generics_1 = require("./generics"); class CallExpression { constructor(node) { this.node = node; } isExpression(name) { return this.name === name; } get name() { return this.callee.name; } get parent() { return this.node.parent; } get arguments() { return this.node.arguments.map((arg) => new identifier_1.Identifier(arg)); } get generics() { return this.node.typeArguments ? new generics_1.Generics(this.node.typeArguments) : this.node.typeParameters && new generics_1.Generics(this.node.typeParameters); } get callee() { return this.node.callee; } } exports.CallExpression = CallExpression; //# sourceMappingURL=callExpression.js.map