@microsoft.azure/autorest.incubator
Version:
AutoRest incubator project
23 lines • 714 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const initializer_1 = require("../../common/initializer");
const text_manipulation_1 = require("../../common/text-manipulation");
class Project extends initializer_1.Initializer {
constructor(objectInitializer) {
super();
this.namespaces = new Array();
this.apply(objectInitializer);
}
addNamespace(n) {
this.namespaces.push(n);
return n;
}
async init() {
return this;
}
async writeFiles(writer) {
await text_manipulation_1.all(this.namespaces, async (ns) => ns.writeFiles(writer));
}
}
exports.Project = Project;
//# sourceMappingURL=project.js.map