cannabis
Version:
TypeScript AST Query library
29 lines • 1.16 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var misc_utils_of_mine_generic_1 = require("misc-utils-of-mine-generic");
// interface I extends Required<{[a in AttributeNames]: 1}> {}
var SupportedAttributesImpl = /** @class */ (function () {
function SupportedAttributesImpl() {
this.text = '';
this.name = '';
this.type = '';
this.modifiers = '';
this.expression = null;
this.literalText = '';
this.start = 0;
this.end = 0;
this.width = 0;
this.body = null;
this.leadingComments = [];
this.trailingComments = [];
this.kindPath = '';
this.indexPath = '';
this.namePath = '';
}
return SupportedAttributesImpl;
}());
var attributeNamesMap = {
'text': 1, 'name': 1, 'type': 1, 'modifiers': 1, 'expression': 1, 'literalText': 1, 'start': 1, 'end': 1, 'width': 1, 'body': 1, 'leadingComments': 1, 'trailingComments': 1, 'kindPath': 1, 'indexPath': 1, 'namePath': 1
};
exports.attributeNames = misc_utils_of_mine_generic_1.objectKeys(attributeNamesMap);
//# sourceMappingURL=attributeTypes.js.map