ts-simple-ast
Version:
TypeScript compiler wrapper for AST navigation and code generation.
28 lines (26 loc) • 994 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const manipulation_1 = require("./../../manipulation");
const callBaseFill_1 = require("./../callBaseFill");
const common_1 = require("./../common");
const base_1 = require("./../base");
const function_1 = require("./../function");
exports.MethodSignatureBase = base_1.DocumentationableNode(base_1.QuestionTokenableNode(function_1.SignaturedDeclaration(base_1.PropertyNamedNode(common_1.Node))));
class MethodSignature extends exports.MethodSignatureBase {
/**
* Fills the node from a structure.
* @param structure - Structure to fill.
*/
fill(structure) {
callBaseFill_1.callBaseFill(exports.MethodSignatureBase.prototype, this, structure);
return this;
}
/**
* Removes this method signature.
*/
remove() {
manipulation_1.removeInterfaceMember(this);
}
}
exports.MethodSignature = MethodSignature;
//# sourceMappingURL=MethodSignature.js.map