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

Unified Diff: lib/runtime/messages_widget.js

Issue 1047083002: Update widget with latext fix from source_span (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
« no previous file with comments | « no previous file | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/messages_widget.js
diff --git a/lib/runtime/messages_widget.js b/lib/runtime/messages_widget.js
index b1362f5d37c522be5a05604107ad11eb0ede7bad..e1b73270300f0229bce9c6722ff3fb7ad5bba001 100644
--- a/lib/runtime/messages_widget.js
+++ b/lib/runtime/messages_widget.js
@@ -351,10 +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
+XU:function(a,b,c){var z,y
if(c>=a.length)return-1
-for(z=c;z<a.length;++z)if(J.mG(a[z],b))return z
-return-1},
+if(c<0)c=0
+for(z=c;y=a.length,z<y;++z){if(z<0)return H.e(a,z)
+if(J.mG(a[z],b))return z}return-1},
OY:function(a,b){return this.XU(a,b,0)},
Pk:function(a,b,c){var z,y
if(c<0)return-1
@@ -3295,6 +3296,7 @@ this.sv(a,z+1)
this.q(a,z,b)},
XU:function(a,b,c){var z
if(c>=this.gv(a))return-1
+if(c<0)c=0
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)},
@@ -5503,10 +5505,7 @@ 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,"context")
-if(t!=null){y=z.p(a,"text")
-s=new E.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"))
+s=t!=null?E.QJ(v,u,z.p(a,"text"),t):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;",
@@ -6108,9 +6107,12 @@ z=this.c
y=J.U6(z)
x=y.OY(z,c)
if(x===-1)throw H.b(P.p("The context line \""+H.d(z)+"\" must contain \""+H.d(c)+"\"."))
-w=a.c
-v=J.t(w)
-if(!v.m(w,x-(y.Pk(z,"\n",x)+1)))throw H.b(P.p("The span text \""+H.d(c)+"\" must start at column "+H.d(v.g(w,1))+" in a line within \""+H.d(z)+"\"."))}}}],]
+for(w=a.c,v=J.t(w);x!==-1;){if(v.m(w,x-(y.Pk(z,"\n",x)+1)))return
+x=y.XU(z,c,x+1)}throw H.b(P.p("The span text \""+H.d(c)+"\" must start at column "+H.d(v.g(w,1))+" in a line within \""+H.d(z)+"\"."))},
+static:{QJ:function(a,b,c,d){var z=new E.hF(d,a,b,c)
+z.Y9(a,b,c)
+z.kd(a,b,c,d)
+return z}}}}],]
parseReflectionData(dart)
J.Qc=function(a){if(typeof a=="number")return J.F.prototype
if(typeof a=="string")return J.E.prototype
« no previous file with comments | « no previous file | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698