
js.prompto.declaration.BaseDeclaration.js Maven / Gradle / Ivy
var Section = require("../parser/Section").Section;
function BaseDeclaration(id) {
Section.call(this);
this.id = id;
this.comments = null;
return this;
}
BaseDeclaration.prototype = Object.create(Section.prototype);
BaseDeclaration.prototype.constructor = BaseDeclaration;
Object.defineProperty(BaseDeclaration.prototype, "name", {
get : function() {
return this.id.name;
}
});
BaseDeclaration.prototype.unregister = function(context) {
context.unregisterDeclaration (this);
};
BaseDeclaration.prototype.toDialect = function(writer) {
writer.toDialect(this);
};
exports.BaseDeclaration = BaseDeclaration;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy