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

Unified Diff: pkg/path/lib/path.dart

Issue 26734004: use symbol literals instead of const ctor in packages (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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/observe/test/path_observer_test.dart ('k') | pkg/polymer/lib/deserialize.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/path/lib/path.dart
diff --git a/pkg/path/lib/path.dart b/pkg/path/lib/path.dart
index eb126d530f5f1e72ded815ef272d5db85968a83b..dafb0c2b842bb7eea1dca7b688ce03749177b1d5 100644
--- a/pkg/path/lib/path.dart
+++ b/pkg/path/lib/path.dart
@@ -90,11 +90,9 @@ LibraryMirror get _html =>
/// return the current URL.
String get current {
if (_io != null) {
- return _io.classes[const Symbol('Directory')]
- .getField(const Symbol('current')).reflectee.path;
+ return _io.classes[#Directory].getField(#current).reflectee.path;
} else if (_html != null) {
- return _html.getField(const Symbol('window'))
- .reflectee.location.href;
+ return _html.getField(#window).reflectee.location.href;
} else {
return '.';
}
@@ -869,8 +867,8 @@ abstract class Style {
static Style _getPlatformStyle() {
if (_io == null) return Style.url;
- if (_io.classes[const Symbol('Platform')]
- .getField(const Symbol('operatingSystem')).reflectee == 'windows') {
+ if (_io.classes[#Platform].getField(#operatingSystem)
+ .reflectee == 'windows') {
return Style.windows;
}
« no previous file with comments | « pkg/observe/test/path_observer_test.dart ('k') | pkg/polymer/lib/deserialize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698