MCPcopy
hub / github.com/winjs/winjs / SubText

Function SubText

tools/dts-verifier/lib/typescript.js:3686–3699  ·  view source on GitHub ↗
(text, span)

Source from the content-addressed store, hash-verified

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 };

Callers

nothing calls this directly

Calls 3

callMethod · 0.80
endMethod · 0.80
startMethod · 0.65

Tested by

no test coverage detected