define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var TextSearchResult = (function () {
function TextSearchResult(owner) {
this.startIn = undefined;
this.endIn = undefined;
this.owner = owner;
this.documentHelper = this.owner.documentHelper;
}
Object.defineProperty(TextSearchResult.prototype, "start", {
get: function () {
return this.startIn;
},
set: function (value) {
this.startIn = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(TextSearchResult.prototype, "end", {
get: function () {
return this.endIn;
},
set: function (value) {
this.endIn = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(TextSearchResult.prototype, "text", {
get: function () {
return this.documentHelper.selection.getTextInternal(this.start, this.end, false);
},
enumerable: true,
configurable: true
});
TextSearchResult.prototype.destroy = function () {
this.start = undefined;
this.end = undefined;
};
return TextSearchResult;
}());
exports.TextSearchResult = TextSearchResult;
});
|