ts-simple-ast
Version:
TypeScript compiler wrapper for AST navigation and code generation.
39 lines (38 loc) • 1.51 kB
JavaScript
;
var __extends = (this && this.__extends)/* istanbul ignore next */ || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var DocumentSpan_1 = require("./DocumentSpan");
var ReferenceEntry = /** @class */ (function (_super) {
__extends(ReferenceEntry, _super);
/**
* @internal
*/
function ReferenceEntry(global, compilerObject) {
return _super.call(this, global, compilerObject) || this;
}
ReferenceEntry.prototype.isWriteAccess = function () {
// todo: not sure what this does
return this.compilerObject.isWriteAccess;
};
/**
* If this is the definition reference.
*/
ReferenceEntry.prototype.isDefinition = function () {
return this.compilerObject.isDefinition;
};
ReferenceEntry.prototype.isInString = function () {
// todo: not sure what this does and why it can be undefined
return this.compilerObject.isInString;
};
return ReferenceEntry;
}(DocumentSpan_1.DocumentSpan));
exports.ReferenceEntry = ReferenceEntry;