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

Unified Diff: pkg/kernel/lib/transformations/closure/mock.dart

Issue 2609183002: Fix to closure mock.dart (Closed)
Patch Set: Created 3 years, 12 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/transformations/closure/mock.dart
diff --git a/pkg/kernel/lib/transformations/closure/mock.dart b/pkg/kernel/lib/transformations/closure/mock.dart
index a948df285aa738151a8ceee6f377209bf3ecbc91..be8847dd177fcb3b406a4c9cf07344af7ff74d43 100644
--- a/pkg/kernel/lib/transformations/closure/mock.dart
+++ b/pkg/kernel/lib/transformations/closure/mock.dart
@@ -29,6 +29,7 @@ import '../../ast.dart'
Program,
PropertyGet,
ReturnStatement,
+ Source,
Statement,
StaticInvocation,
Supertype,
@@ -183,6 +184,6 @@ Class mockUpContext(CoreTypes coreTypes, Program program) {
name: "mock", classes: [contextClass])..fileUri = fileUri;
program.libraries.add(mock);
mock.parent = program;
- program.uriToLineStarts[mock.fileUri] = <int>[0];
+ program.uriToSource[mock.fileUri] = new Source(<int>[0], "");
return contextClass;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698