UNPKG

@microsoft.azure/autorest.incubator

Version:
19 lines 857 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const access_modifier_1 = require("../../csharp/code-dom/access-modifier"); const property_1 = require("./property"); class InterfaceProperty extends property_1.Property { constructor(name, type, objectInitializer) { super(name, type); this.getAccess = access_modifier_1.Access.Public; this.setAccess = access_modifier_1.Access.Public; this.apply(objectInitializer); } get declaration() { const get = this.getAccess === access_modifier_1.Access.Public ? "get;" : ""; const set = this.setAccess === access_modifier_1.Access.Public ? "set;" : ""; return `${this.type.declaration} ${this.name} { ${get} ${set} }`; } } exports.InterfaceProperty = InterfaceProperty; //# sourceMappingURL=interface-property.js.map