@microsoft.azure/autorest.incubator
Version:
AutoRest incubator project
20 lines • 805 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const text_manipulation_1 = require("../../common/text-manipulation");
const method_1 = require("./method");
class Operator extends method_1.Method {
constructor(name, objectIntializer) {
super(name);
this.apply(objectIntializer);
}
get declaration() {
const parameterDeclaration = this.parameters.joinWith(p => p.declaration, text_manipulation_1.CommaChar);
return `
${this.summaryDocumentation}
${this.parameterDocumentation}
${this.new}${this.access} ${this.static} ${this.virtual} ${this.sealed} ${this.override} ${this.abstract} ${this.extern} ${this.async} ${this.name}(${parameterDeclaration})
`.slim();
}
}
exports.Operator = Operator;
//# sourceMappingURL=operator.js.map