UNPKG

@microsoft.azure/autorest.incubator

Version:
15 lines 817 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const interface_property_1 = require("../../../csharp/code-dom/interface-property"); const access_modifier_1 = require("../../../csharp/code-dom/access-modifier"); class ModelInterfaceProperty extends interface_property_1.InterfaceProperty { constructor(parent, property, state, objectInitializer) { super(property.details.csharp.name, state.project.modelsNamespace.resolveTypeDeclaration(property.schema, property.details.csharp.required, state.path('schema'))); if (property.schema.readOnly) { this.setAccess = access_modifier_1.Access.Internal; } this.apply(objectInitializer); } } exports.ModelInterfaceProperty = ModelInterfaceProperty; //# sourceMappingURL=interface-property.js.map