| 3684 | var SubText = (function (_super) { |
| 3685 | __extends(SubText, _super); |
| 3686 | function SubText(text, span) { |
| 3687 | _super.call(this); |
| 3688 | |
| 3689 | if (text === null) { |
| 3690 | throw TypeScript.Errors.argumentNull("text"); |
| 3691 | } |
| 3692 | |
| 3693 | if (span.start() < 0 || span.start() >= text.length() || span.end() < 0 || span.end() > text.length()) { |
| 3694 | throw TypeScript.Errors.argument("span"); |
| 3695 | } |
| 3696 | |
| 3697 | this.text = text; |
| 3698 | this.span = span; |
| 3699 | } |
| 3700 | SubText.prototype.length = function () { |
| 3701 | return this.span.length(); |
| 3702 | }; |