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

Unified Diff: pkg/compiler/samples/jsonify/jsonify.dart

Issue 921173003: Fix try. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | site/try/src/interaction_manager.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/samples/jsonify/jsonify.dart
diff --git a/pkg/compiler/samples/jsonify/jsonify.dart b/pkg/compiler/samples/jsonify/jsonify.dart
index f09ad7f95ee133c710346f90b10e6462ddf28949..54a6e1800d7deb094e475666b9922ce6e2c07ac0 100644
--- a/pkg/compiler/samples/jsonify/jsonify.dart
+++ b/pkg/compiler/samples/jsonify/jsonify.dart
@@ -70,7 +70,7 @@ jsonify(MirrorSystem mirrors) {
BackDoor.compilationUnitsOf(library).forEach((compilationUnit) {
Uri uri = compilationUnit.uri;
String filename = relativize(sdkRoot, uri, false);
- SourceFile file = handler.provider.sourceFiles['$uri'];
+ SourceFile file = handler.provider.sourceFiles[uri];
map['sdk:/$filename'] = file.slowText();
});
});
@@ -80,7 +80,7 @@ jsonify(MirrorSystem mirrors) {
if (patch != null) {
Uri uri = sdkRoot.resolve('sdk/lib/$patch');
String filename = relativize(sdkRoot, uri, false);
- SourceFile file = handler.provider.sourceFiles['$uri'];
+ SourceFile file = handler.provider.sourceFiles[uri];
map['sdk:/$filename'] = file.slowText();
}
});
« no previous file with comments | « no previous file | site/try/src/interaction_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698