Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Unified Diff: lib/runtime/messages_widget.js

Issue 1023893004: Pass through context information in error messages (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/runtime/messages_widget.js
diff --git a/lib/runtime/messages_widget.js b/lib/runtime/messages_widget.js
index e8330020774f1b1d47ad8f50e8dbcefeeaf50e1a..09c8d1765ac637984d8891decf80cd386aa73432 100644
--- a/lib/runtime/messages_widget.js
+++ b/lib/runtime/messages_widget.js
@@ -1,4 +1,4 @@
-// Generated by dart2js, the Dart to JavaScript compiler version: 1.9.0-dev.10.3.
+// Generated by dart2js, the Dart to JavaScript compiler version: 1.9.0-dev.10.10.
(function($){
function map(a){a=Object.create(null)
a.x=0
@@ -351,6 +351,11 @@ Vr:function(a,b){var z,y
z=a.length
for(y=0;y<z;++y){if(b.$1(a[y])===!0)return!0
if(a.length!==z)throw H.b(P.a4(a))}return!1},
+XU:function(a,b,c){var z
+if(c>=a.length)return-1
+for(z=c;z<a.length;++z)if(J.mG(a[z],b))return z
+return-1},
+OY:function(a,b){return this.XU(a,b,0)},
tg:function(a,b){var z
for(z=0;z<a.length;++z)if(J.mG(a[z],b))return!0
return!1},
@@ -363,7 +368,7 @@ else{z=H.J(a.slice(),[H.Kp(a,0)])
z.fixed$length=Array
return z}},
br:function(a){return this.tt(a,!0)},
-gu:function(a){return H.J(new H.a7(a,a.length,0,null),[H.Kp(a,0)])},
+gu:function(a){return H.J(new J.m1(a,a.length,0,null),[H.Kp(a,0)])},
giO:function(a){return H.eQ(a)},
gv:function(a){return a.length},
sv:function(a,b){if(b<0)throw H.b(P.D(b,null,null))
@@ -384,8 +389,22 @@ if(typeof a!=="number"||Math.floor(a)!==a||a<0)throw H.b(P.p("Length must be a n
z=H.J(new Array(a),[b])
z.fixed$length=Array
return z}}},
+m1:{
+"^":"a;Q,a,b,c",
+gk:function(){return this.c},
+D:function(){var z,y,x
+z=this.Q
+y=z.length
+if(this.a!==y)throw H.b(P.a4(z))
+x=this.b
+if(x>=y){this.c=null
+return!1}this.c=z[x]
+this.b=x+1
+return!0}},
F:{
"^":"Gv;",
+gzP:function(a){return a===0?1/a<0:a<0},
+gG0:function(a){return isNaN(a)},
JV:function(a,b){return a%b},
Vy:function(a){return Math.abs(a)},
yu:function(a){var z
@@ -429,10 +448,12 @@ return a>b},
$islf:1},
im:{
"^":"F;",
+$isCP:1,
$islf:1,
$isKN:1},
VA:{
"^":"F;",
+$isCP:1,
$islf:1},
E:{
"^":"Gv;",
@@ -445,6 +466,12 @@ H.fI(c)
if(c>b.length)throw H.b(P.TE(c,0,b.length,null,null))
return H.ZT(a,b,c)},
dd:function(a,b){return this.ww(a,b,0)},
+wL:function(a,b,c){var z,y
+if(c<0||c>b.length)throw H.b(P.TE(c,0,b.length,null,null))
+z=a.length
+if(c+z>b.length)return
+for(y=0;y<z;++y)if(this.O2(b,c+y)!==this.O2(a,y))return
+return new H.tQ(c,b,a)},
g:function(a,b){if(typeof b!=="string")throw H.b(P.p(b))
return a+b},
Tc:function(a,b){var z,y
@@ -486,7 +513,6 @@ v=this.O2(z,w)===133?J.r9(z,w):y
if(x===0&&v===y)return z
return z.substring(x,v)},
R:function(a,b){var z,y
-if(typeof b!=="number")return H.o(b)
if(0>=b)return""
if(b===1||a.length===0)return a
if(b!==b>>>0)throw H.b(C.Eq)
@@ -495,8 +521,14 @@ b=b>>>1
if(b===0)break
z+=z}return y},
gNq:function(a){return new H.od(a)},
-XU:function(a,b,c){if(c<0||c>a.length)throw H.b(P.TE(c,0,a.length,null,null))
-return a.indexOf(b,c)},
+XU:function(a,b,c){var z,y,x,w
+if(b==null)H.vh(P.p(null))
+if(c<0||c>a.length)throw H.b(P.TE(c,0,a.length,null,null))
+if(typeof b==="string")return a.indexOf(b,c)
+z=J.t(b)
+if(!!z.$isVR){y=b.UZ(a,c)
+return y==null?-1:y.a.index}for(x=a.length,w=c;w<=x;++w)if(z.wL(b,a,w)!=null)return w
+return-1},
OY:function(a,b){return this.XU(a,b,0)},
Pk:function(a,b,c){var z,y
if(c==null)c=a.length
@@ -688,7 +720,7 @@ w=(w-1&u-1)>>>0
y.a=w
if(w<0||w>=u)return H.e(v,w)
v[w]=x
-if(w===y.b)y.wL();++y.c}this.x=!1}this.Wp()},
+if(w===y.b)y.OO();++y.c}this.x=!1}this.Wp()},
Ma:function(a){var z=this.ch
if(z==null){z=[]
this.ch=z}if(J.kE(z,a))return
@@ -761,7 +793,7 @@ this.b.V1(0)
init.globalState.y.Rz(0,this.Q)
this.dx.V1(0)
z=this.ch
-if(z!=null){for(z=H.J(new H.a7(z,z.length,0,null),[H.Kp(z,0)]);z.D();)J.jV(z.c,null)
+if(z!=null){for(z=H.J(new J.m1(z,z.length,0,null),[H.Kp(z,0)]);z.D();)J.jV(z.c,null)
this.ch=null}},"$0","gIm",0,0,1]},
NY:{
"^":"r:1;Q",
@@ -1145,7 +1177,7 @@ y+=String.fromCharCode.apply(null,a.slice(x,v))}return y},
Cq:function(a){var z,y,x
z=[]
z.$builtinTypeInfo=[P.KN]
-y=new H.a7(a,a.length,0,null)
+y=new J.m1(a,a.length,0,null)
y.$builtinTypeInfo=[H.Kp(a,0)]
for(;y.D();){x=y.c
if(typeof x!=="number"||Math.floor(x)!==x)throw H.b(P.p(x))
@@ -1153,7 +1185,7 @@ if(x<=65535)z.push(x)
else if(x<=1114111){z.push(55296+(C.jn.wG(x-65536,10)&1023))
z.push(56320+(x&1023))}else throw H.b(P.p(x))}return H.VK(z)},
eT:function(a){var z,y
-for(z=H.J(new H.a7(a,a.length,0,null),[H.Kp(a,0)]);z.D();){y=z.c
+for(z=H.J(new J.m1(a,a.length,0,null),[H.Kp(a,0)]);z.D();){y=z.c
if(typeof y!=="number"||Math.floor(y)!==y)throw H.b(P.p(y))
if(y<0)throw H.b(P.p(y))
if(y>65535)return H.Cq(a)}return H.VK(a)},
@@ -1687,7 +1719,7 @@ for(y=x.length,w=0;w<y;++w){v=x[w]
if(z[v]===a)return v}}}},
mh:{
"^":"Ge;G1:Q>",
-X:function(a){return"RuntimeError: "+this.Q},
+X:function(a){return"RuntimeError: "+H.d(this.Q)},
static:{Pa:function(a){return new H.mh(a)}}},
lb:{
"^":"a;"},
@@ -1922,6 +1954,12 @@ z=this.a
z=H.v4(this.Q,z.multiline,!z.ignoreCase,!0)
this.b=z
return z},
+gIa:function(){var z=this.c
+if(z!=null)return z
+z=this.a
+z=H.v4(this.Q+"|()",z.multiline,!z.ignoreCase,!0)
+this.c=z
+return z},
ww:function(a,b,c){H.Yx(b)
H.fI(c)
if(c>b.length)throw H.b(P.TE(c,0,b.length,null,null))
@@ -1933,6 +1971,19 @@ z.lastIndex=b
y=z.exec(a)
if(y==null)return
return H.yx(this,y)},
+Oj:function(a,b){var z,y,x,w
+z=this.gIa()
+z.lastIndex=b
+y=z.exec(a)
+if(y==null)return
+x=y.length
+w=x-1
+if(w<0)return H.e(y,w)
+if(y[w]!=null)return
+C.Nm.sv(y,w)
+return H.yx(this,y)},
+wL:function(a,b,c){if(c<0||c>b.length)throw H.b(P.TE(c,0,b.length,null,null))
+return this.Oj(b,c)},
$isvX:1,
static:{v4:function(a,b,c,d){var z,y,x,w,v
H.Yx(a)
@@ -3017,7 +3068,7 @@ Q9:function(a,b){return H.J(new P.ey(0,null,null,null,null,null,0),[a,b])},
Ls:function(a,b,c,d){return H.J(new P.b6(0,null,null,null,null,null,0),[d])},
tM:function(a,b){var z,y
z=P.Ls(null,null,null,b)
-for(y=J.Nx(a);y.D();)z.h(0,y.c)
+for(y=J.Nx(a);y.D();)z.h(0,y.gk())
return z},
vW:function(a){var z,y,x
z={}
@@ -3236,6 +3287,11 @@ ez:function(a,b){return H.J(new H.A8(a,b),[null,null])},
h:function(a,b){var z=this.gv(a)
this.sv(a,z+1)
this.q(a,z,b)},
+XU:function(a,b,c){var z
+if(c>=this.gv(a))return-1
+for(z=c;z<this.gv(a);++z)if(J.mG(this.p(a,z),b))return z
+return-1},
+OY:function(a,b){return this.XU(a,b,0)},
X:function(a){return P.WE(a,"[","]")},
$iszM:1,
$aszM:null,
@@ -3298,8 +3354,8 @@ if(y<0||y>=x)return H.e(z,y)
z[y]=a
x=(y+1&x-1)>>>0
this.b=x
-if(this.a===x)this.wL();++this.c},
-wL:function(){var z,y,x,w
+if(this.a===x)this.OO();++this.c},
+OO:function(){var z,y,x,w
z=Array(this.Q.length*2)
z.fixed$length=Array
y=H.J(z,[H.Kp(this,0)])
@@ -3644,9 +3700,9 @@ if(!z&&c<b)throw H.b(P.TE(c,b,J.wS(a),null,null))
y=J.Nx(a)
for(x=0;x<b;++x)if(!y.D())throw H.b(P.TE(b,0,x,null,null))
w=[]
-if(z)for(;y.D();)w.push(y.c)
+if(z)for(;y.D();)w.push(y.gk())
else for(x=b;x<c;++x){if(!y.D())throw H.b(P.TE(c,b,x,null,null))
-w.push(y.c)}return H.eT(w)},
+w.push(y.gk())}return H.eT(w)},
hl:function(a){if(typeof a==="number"||typeof a==="boolean"||null==a)return J.Lz(a)
if(typeof a==="string")return JSON.stringify(a)
return"Instance of '"+H.lh(a)+"'"},
@@ -3939,7 +3995,7 @@ return C.xB.OY(a,"/.")!==-1},
mE:function(a){var z,y,x,w,v
if(!this.jI(a))return a
z=[]
-for(y=a.split("/"),y=H.J(new H.a7(y,y.length,0,null),[H.Kp(y,0)]),x=!1;y.D();){w=y.c
+for(y=a.split("/"),y=H.J(new J.m1(y,y.length,0,null),[H.Kp(y,0)]),x=!1;y.D();){w=y.c
if(J.mG(w,"..")){v=z.length
if(v!==0)if(v===1){if(0>=v)return H.e(z,0)
v=!J.mG(z[0],"")}else v=!0
@@ -4837,7 +4893,7 @@ $isqC:1},
D9:{
"^":"a;",
aN:function(a,b){var z,y
-for(z=this.gvc(),z=H.J(new H.a7(z,z.length,0,null),[H.Kp(z,0)]);z.D();){y=z.c
+for(z=this.gvc(),z=H.J(new J.m1(z,z.length,0,null),[H.Kp(z,0)]);z.D();){y=z.c
b.$2(y,this.p(0,y))}},
gvc:function(){var z,y,x,w
z=this.Q.attributes
@@ -4857,7 +4913,7 @@ I4:{
"^":"As;Q",
DG:function(){var z,y,x
z=P.Ls(null,null,null,P.I)
-for(y=this.Q.className.split(" "),y=H.J(new H.a7(y,y.length,0,null),[H.Kp(y,0)]);y.D();){x=J.rr(y.c)
+for(y=this.Q.className.split(" "),y=H.J(new J.m1(y,y.length,0,null),[H.Kp(y,0)]);y.D();){x=J.rr(y.c)
if(x.length!==0)z.h(0,x)}return z},
p5:function(a){this.Q.className=a.zV(0," ")}},
RO:{
@@ -4905,8 +4961,8 @@ if(x==null)return!1
return x.$4(a,b,c,this)},
qR:function(a){var z,y
z=$.NJ()
-if(z.gl0(z)){for(y=H.J(new H.a7(C.zm,261,0,null),[H.Kp(C.zm,0)]);y.D();)z.q(0,y.c,W.y3())
-for(y=H.J(new H.a7(C.BI,12,0,null),[H.Kp(C.BI,0)]);y.D();)z.q(0,y.c,W.WR())}},
+if(z.gl0(z)){for(y=H.J(new J.m1(C.zm,261,0,null),[H.Kp(C.zm,0)]);y.D();)z.q(0,y.c,W.y3())
+for(y=H.J(new J.m1(C.BI,12,0,null),[H.Kp(C.BI,0)]);y.D();)z.q(0,y.c,W.WR())}},
$iskF:1,
static:{Tw:function(a){var z=new W.mk(W.J6(null),window.location)
z=new W.JQ(z)
@@ -5146,7 +5202,7 @@ DG:function(){var z,y,x,w
z=this.Q.getAttribute("class")
y=P.Ls(null,null,null,P.I)
if(z==null)return y
-for(x=z.split(" "),x=H.J(new H.a7(x,x.length,0,null),[H.Kp(x,0)]);x.D();){w=J.rr(x.c)
+for(x=z.split(" "),x=H.J(new J.m1(x,x.length,0,null),[H.Kp(x,0)]);x.D();){w=J.rr(x.c)
if(w.length!==0)y.h(0,w)}return y},
p5:function(a){this.Q.setAttribute("class",a.zV(0," "))}},
d5:{
@@ -5218,7 +5274,20 @@ a=536870911&a+((524287&a)<<10>>>0)
return a^a>>>6},
xk:function(a){a=536870911&a+((67108863&a)<<3>>>0)
a^=a>>>11
-return 536870911&a+((16383&a)<<15>>>0)}}],["","",,H,{
+return 536870911&a+((16383&a)<<15>>>0)},
+C:function(a,b){if(typeof a!=="number")throw H.b(P.p(a))
+if(typeof b!=="number")throw H.b(P.p(b))
+if(a>b)return b
+if(a<b)return a
+if(typeof b==="number"){if(typeof a==="number")if(a===0)return(a+b)*a*b
+if(a===0&&C.ON.gzP(b)||C.ON.gG0(b))return b
+return a}return a},
+u:function(a,b){if(a>b)return a
+if(a<b)return b
+if(typeof b==="number"){if(typeof a==="number")if(a===0)return a+b
+if(isNaN(b))return b
+return a}if(b===0&&C.CD.gzP(a))return b
+return a}}],["","",,H,{
"^":"",
WZ:{
"^":"Gv;",
@@ -5412,14 +5481,22 @@ RR:function(a,b){return b.tS(this)}},
bO:{
"^":"a;Q,a,mO:b>,G1:c>",
RR:function(a,b){return b.IR(this)},
-static:{Vd:[function(a){var z,y,x,w,v
+static:{Vd:[function(a){var z,y,x,w,v,u,t,s
z=J.U6(a)
-y=O.XR(z.p(a,"start"),null,null,z.p(a,"url"))
-x=O.XR(z.p(a,"end"),null,null,z.p(a,"url"))
-w=z.p(a,"text")
-v=new T.Y5(y,x,w)
-v.Y9(y,x,w)
-return new X.bO(z.p(a,"kind"),z.p(a,"level"),v,z.p(a,"message"))},"$1","e2",2,0,37]}},
+y=J.Tf(z.p(a,"start"),0)
+x=z.p(a,"url")
+w=J.Tf(z.p(a,"start"),1)
+v=O.XR(y,J.Tf(z.p(a,"start"),2),w,x)
+x=J.Tf(z.p(a,"end"),0)
+w=z.p(a,"url")
+y=J.Tf(z.p(a,"end"),1)
+u=O.XR(x,J.Tf(z.p(a,"end"),2),y,w)
+t=z.p(a,"contextLine")
+if(t!=null){y=z.p(a,"text")
+s=new T.hF(t,v,u,y)
+s.Y9(v,u,y)
+s.kd(v,u,y,t)}else s=T.HW(v,u,z.p(a,"text"))
+return new X.bO(z.p(a,"kind"),z.p(a,"level"),s,z.p(a,"message"))},"$1","e2",2,0,37]}},
zv:{
"^":"a;",
ai:function(a){var z
@@ -5658,7 +5735,7 @@ y=z.length
if(y>0)z[y-1]=""},
p3:function(){var z,y,x,w,v,u
z=[]
-for(y=this.c,y=H.J(new H.a7(y,y.length,0,null),[H.Kp(y,0)]),x=0;y.D();){w=y.c
+for(y=this.c,y=H.J(new J.m1(y,y.length,0,null),[H.Kp(y,0)]),x=0;y.D();){w=y.c
v=J.t(w)
if(v.m(w,".")||v.m(w,""));else if(v.m(w,".."))if(z.length>0)z.pop()
else ++x
@@ -5804,10 +5881,10 @@ return P.pE(H.ys(y,"/","\\"),C.dy,!1)}}}],["","",,F,{
"^":"",
Iq:[function(){var z=0,y=new P.Z(),x,w=2,v,u
function body(a,b){if(a===1){v=b
-z=w}while(true)switch(z){case 0:u=F.S
+z=w}while(true)switch(z){case 0:u=F
z=3
return H.U(W.X("messages.json",null,null),body,y)
-case 3:x=u(b)
+case 3:x=u.S(b)
z=1
break
case 1:return H.U(x,0,y,null)
@@ -5829,7 +5906,7 @@ document.body.appendChild(w)},
m7:function(a){return J.Yr(a,$.KO(),new F.Rb())},
vQ:{
"^":"r:13;Q,a,b,c",
-$2:function(a,b){var z,y,x,w,v,u,t,s,r,q,p,o,n,m,l
+$2:function(a,b){var z,y,x,w,v,u,t,s,r,q,p,o,n,m,l,k
z=document.createElement("div",null)
J.pP(z).h(0,a)
y=J.U6(b)
@@ -5847,31 +5924,41 @@ s=t.b5(u,0,J.wS(u))
r=F.m7(s==null?u:s)
q=w.gmO(v)
w="<div class=\"message\"><div class=\"text "+H.d(a)+"\">"+r+"</div>"
-if(q!=null){u=J.cW(q)
-p=u.Q
-u="<div class=\"location\"> <span class=\"location\">"+(H.d(p==null?"unknown source":p)+":"+(u.b+1)+":"+H.d(J.WB(u.c,1)))+"</span></div> <span class=\"text\">"
-o=q.b
-s=t.b5(o,0,J.wS(o))
-w+=u+H.d(s==null?o:s)+"</span></div></div>"}w+="</div>"
+if(q!=null){u=J.R(q)
+p=u.gJ(q)
+o=p.Q
+w+="<div class=\"location\"> <span class=\"location\">"+(H.d(o==null?"unknown source":o)+":"+H.d(J.WB(p.b,1))+":"+H.d(J.WB(p.c,1)))+"</span></div> <span class=\"text\">"
+if(!!u.$ishF){n=q.c
+u=J.rY(n).Nj(n,0,q.Q.c)
+s=t.b5(u,0,u.length)
+w=w+H.d(s==null?u:s)+("<span class=\""+H.d(a)+"\">")
+u=q.b
+s=t.b5(u,0,J.wS(u))
+w=w+H.d(s==null?u:s)+"</span>"
+u=C.xB.yn(n,q.a.c)
+s=t.b5(u,0,u.length)
+w+=H.d(s==null?u:s)}else{u=q.b
+s=t.b5(u,0,J.wS(u))
+w+=H.d(s==null?u:s)}w+="</span></div></div>"}w+="</div>"
w=w.charCodeAt(0)==0?w:w
u=[]
u.$builtinTypeInfo=[W.kF]
u.push(W.Tw(null))
u.push(W.Bl())
u.push(W.GA(new F.qv(),["A::accesskey","A::coords","A::hreflang","A::name","A::shape","A::tabindex","A::target","A::type","FORM::accept","FORM::autocomplete","FORM::enctype","FORM::method","FORM::name","FORM::novalidate","FORM::target"],["A","FORM"],["A::href","FORM::action"]))
-n=W.U9(w,null,new W.vD(u))
-z.appendChild(n)
-m=J.c1(n,"div.text")
-w=J.Vg(m)
+m=W.U9(w,null,new W.vD(u))
+z.appendChild(m)
+l=J.c1(m,"div.text")
+w=J.Vg(l)
u=w.a
t=w.b
-o=new W.xC(0,w.Q,u,W.aF(new F.IX(m)),t)
-o.$builtinTypeInfo=[H.Kp(w,0)]
-w=o.c
-l=w!=null
-if(l&&o.Q<=0){o=o.a
-o.toString
-if(l)J.F8(o,u,w,t)}}}},
+p=new W.xC(0,w.Q,u,W.aF(new F.IX(l)),t)
+p.$builtinTypeInfo=[H.Kp(w,0)]
+w=p.c
+k=w!=null
+if(k&&p.Q<=0){p=p.a
+p.toString
+if(k)J.F8(p,u,w,t)}}}},
IL:{
"^":"r:2;Q,a,b,c",
$1:function(a){this.Q.Nm(0,this.c)
@@ -5906,7 +5993,7 @@ $0:function(){return[]}}},1],["","",,O,{
SL:{
"^":"a;Q,a,b,c",
gRo:function(){var z=this.Q
-return H.d(z==null?"unknown source":z)+":"+(this.b+1)+":"+H.d(J.WB(this.c,1))},
+return H.d(z==null?"unknown source":z)+":"+H.d(J.WB(this.b,1))+":"+H.d(J.WB(this.c,1))},
fH:function(a){var z,y
z=this.Q
y=a.Q
@@ -5921,11 +6008,15 @@ if(typeof y!=="number")return H.o(y)
return z+y},
X:function(a){return"<"+H.d(new H.cu(H.dJ(this),null))+": "+H.d(this.a)+" "+this.gRo()+">"},
dl:function(a,b,c,d){if(J.UN(this.a,0))throw H.b(P.C3("Offset may not be negative, was "+H.d(a)+"."))
+else if(J.UN(this.b,0))throw H.b(P.C3("Line may not be negative, was "+H.d(c)+"."))
else if(J.UN(this.c,0))throw H.b(P.C3("Column may not be negative, was "+H.d(b)+"."))},
-static:{XR:function(a,b,c,d){var z=typeof d==="string"?P.hK(d):d
-z=new O.SL(z,a,0,a)
-z.dl(a,b,c,d)
-return z}}}}],["","",,T,{
+static:{XR:function(a,b,c,d){var z,y,x
+z=typeof d==="string"?P.hK(d):d
+y=c==null?0:c
+x=b==null?a:b
+x=new O.SL(z,a,y,x)
+x.dl(a,b,c,d)
+return x}}}}],["","",,T,{
"^":"",
m5:{
"^":"a;"},
@@ -5939,21 +6030,43 @@ w=x.Q
if(!J.mG(y,w))throw H.b(P.p("Source URLs \""+H.d(w)+"\" and \""+H.d(y)+"\" don't match."))
else if(J.UN(z.a,x.a))throw H.b(P.p("End "+z.X(0)+" must come after start "+x.X(0)+"."))
else{y=this.b
-if(!J.mG(J.wS(y),x.fH(z)))throw H.b(P.p("Text \""+H.d(y)+"\" must be "+H.d(x.fH(z))+" characters long."))}}}}],["","",,Y,{
+if(!J.mG(J.wS(y),x.fH(z)))throw H.b(P.p("Text \""+H.d(y)+"\" must be "+H.d(x.fH(z))+" characters long."))}},
+static:{HW:function(a,b,c){var z=new T.Y5(a,b,c)
+z.Y9(a,b,c)
+return z}}},
+hF:{
+"^":"Y5;c,Q,a,b",
+kd:function(a,b,c,d){var z,y
+z=this.c
+y=a.c
+if(J.pB(z,c)!==y)throw H.b(P.p("The context line \""+H.d(z)+"\" must contain \""+H.d(c)+"\" starting at column "+H.d(J.WB(y,1))+"."))},
+$isP5:1}}],["","",,Y,{
"^":"",
Jo:{
"^":"a;",
gv:function(a){return J.D5(this.geX().a,this.Q.a)},
-XA:[function(a,b,c){var z,y,x,w
+XA:[function(a,b,c){var z,y,x,w,v,u,t
z=this.Q
-y="line "+(this.gJ(this).b+1)+", column "+H.d(J.WB(z.c,1))
-x=z.Q
-if(x!=null)y+=" of "+$.LX().D8(x)
-y+=": "+H.d(b)
-if(J.mG(J.D5(this.a.a,z.a),0))return y.charCodeAt(0)==0?y:y
-z=y+"\n"
-w=C.Nm.gFV(J.Gn(this.b,"\n"))
-z=z+H.d(w)+"\n"+C.xB.R("^",J.wS(w))
+y=z.c
+x="line "+H.d(J.WB(this.gJ(this).b,1))+", column "+H.d(J.WB(y,1))
+w=z.Q
+if(w!=null)x+=" of "+$.LX().D8(w)
+x+=": "+H.d(b)
+w=!!this.$isP5
+if(w){v=this.c
+y=P.C(y,J.D5(J.wS(v),1))}else{v=C.Nm.gFV(J.Gn(this.b,"\n"))
+y=0}u=this.a.a
+z=z.a
+if(J.mG(J.D5(u,z),0)&&!w)return x.charCodeAt(0)==0?x:x
+x+="\n"
+if(typeof u!=="number")return H.o(u)
+if(typeof z!=="number")return H.o(z)
+w=J.U6(v)
+t=P.C(y+u-z,w.gv(v))
+z=x+H.d(v)
+if(!w.Tc(v,"\n"))z+="\n"
+z+=C.xB.R(" ",y)
+z+=C.xB.R("^",P.u(t-y,1))
return z.charCodeAt(0)==0?z:z},function(a,b){return this.XA(a,b,null)},"Xj","$2$color","$1","gG1",2,3,25,38],
m:function(a,b){var z
if(b==null)return!1
@@ -6042,7 +6155,6 @@ J.WB=function(a,b){if(typeof a=="number"&&typeof b=="number")return a+b
return J.Qc(a).g(a,b)}
J.Yr=function(a,b,c){return J.rY(a).nx(a,b,c)}
J.c1=function(a,b){return J.R(a).Wk(a,b)}
-J.cW=function(a){return J.R(a).gJ(a)}
J.dX=function(a){return J.Wx(a).Vy(a)}
J.i4=function(a,b){return J.w1(a).h(a,b)}
J.i9=function(a,b){return J.w1(a).Zv(a,b)}
@@ -6055,6 +6167,7 @@ J.mG=function(a,b){if(a==null)return b==null
if(typeof a!="object")return b!=null&&a===b
return J.t(a).m(a,b)}
J.ok=function(a,b){return J.R(a).RR(a,b)}
+J.pB=function(a,b){return J.U6(a).OY(a,b)}
J.pO=function(a){return J.U6(a).gor(a)}
J.pP=function(a){return J.R(a).gDD(a)}
J.r0=function(a,b){return J.R(a).sLU(a,b)}
@@ -6070,6 +6183,7 @@ a.fixed$length=Array
return a}
C.Dt=W.zU.prototype
C.Nm=J.G.prototype
+C.ON=J.VA.prototype
C.jn=J.im.prototype
C.jN=J.PE.prototype
C.CD=J.F.prototype
« no previous file with comments | « lib/runtime/messages_widget.dart ('k') | lib/src/summary.dart » ('j') | lib/src/summary.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698