View.prototype.toString = function () { var str = this.typeName; if (this.id) { str += "<" + this.id + ">"; } else { str += "(" + this._domId + ")"; } var source = debug_1.Source.get(this); if (source) { str += "@" + source + ";"; } return str; };
return function (component, p) { if (!debug_1.Source.get(component)) { var source = p ? new debug_1.Source(uri, p.line, p.column) : new debug_1.Source(uri, -1, -1); debug_1.Source.set(component, source); } };