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

Unified Diff: bin/builtin.dart

Issue 10083042: - Update the style of switch statement. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/builtin.dart
===================================================================
--- bin/builtin.dart (revision 6676)
+++ bin/builtin.dart (working copy)
@@ -88,14 +88,19 @@
var path;
switch (uri.scheme) {
- case 'file': path = _filePathFromFileUri(uri); break;
- case 'dart-ext': path = _filePathFromOtherUri(uri); break;
- case 'package': path = _filePathFromPackageUri(uri); break;
-
- default:
- // Only handling file, dart-ext and package URIs in standalone binary.
- _logResolution("# Not a file, dart-ext, or package URI.");
- throw "Not a known scheme: $uri";
+ case 'file':
+ path = _filePathFromFileUri(uri);
+ break;
+ case 'dart-ext':
+ path = _filePathFromOtherUri(uri);
+ break;
+ case 'package':
+ path = _filePathFromPackageUri(uri);
+ break;
+ default:
+ // Only handling file and package URIs in standalone binary.
+ _logResolution("# Unknown scheme (${uri.scheme}) in $uri.");
+ throw "Not a known scheme: $uri";
}
if (_is_windows) {
« 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