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

Unified Diff: pkg/front_end/lib/src/fasta/testing/validating_instrumentation.dart

Issue 2846463003: Instrument analyzer's type analysis and run front_end inference tests. (Closed)
Patch Set: Updates. Created 3 years, 8 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 | « pkg/front_end/lib/src/base/instrumentation.dart ('k') | pkg/front_end/test/fasta/kompile.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/testing/validating_instrumentation.dart
diff --git a/pkg/front_end/lib/src/fasta/testing/validating_instrumentation.dart b/pkg/front_end/lib/src/fasta/testing/validating_instrumentation.dart
index 19b86eb9a0fe1e9a1455357b87bdb6ec050fe8af..ca7810ad2e82a8450ff17e3b3b499f5ad9c0ac99 100644
--- a/pkg/front_end/lib/src/fasta/testing/validating_instrumentation.dart
+++ b/pkg/front_end/lib/src/fasta/testing/validating_instrumentation.dart
@@ -78,7 +78,7 @@ class ValidatingInstrumentation implements Instrumentation {
var fixes = _fixes[uri];
if (fixes == null) return;
File file = new File.fromUri(uri);
- var bytes = await file.readAsBytes();
+ var bytes = (await file.readAsBytes()).toList();
// Apply the fixes in reverse order so that offsets don't need to be
// adjusted after each fix.
fixes.sort((a, b) => b.offset.compareTo(a.offset));
« no previous file with comments | « pkg/front_end/lib/src/base/instrumentation.dart ('k') | pkg/front_end/test/fasta/kompile.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698