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

Unified Diff: pkg/polymer/lib/src/declaration.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/polymer/lib/deserialize.dart ('k') | pkg/polymer/lib/src/instance.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/declaration.dart
diff --git a/pkg/polymer/lib/src/declaration.dart b/pkg/polymer/lib/src/declaration.dart
index 6436ffd25d4b66508a40a9f786ac1244a3c4ce30..9bd5719a493fdf075fe6864f9ef42ac07495032e 100644
--- a/pkg/polymer/lib/src/declaration.dart
+++ b/pkg/polymer/lib/src/declaration.dart
@@ -237,10 +237,10 @@ class PolymerDeclaration extends CustomElement {
installSheets();
// TODO(jmesserly): this feels unnatrual in Dart. Since we have convenient
// lazy static initialization, can we get by without it?
- var registered = type.methods[const Symbol('registerCallback')];
+ var registered = type.methods[#registerCallback];
if (registered != null && registered.isStatic &&
registered.isRegularMethod) {
- type.invoke(const Symbol('registerCallback'), [this]);
+ type.invoke(#registerCallback, [this]);
}
}
@@ -583,8 +583,7 @@ bool _hasSetter(ClassMirror type, MethodMirror getter) {
return type.setters.containsKey(setterName);
}
-bool _inDartHtml(ClassMirror type) =>
- type.owner.simpleName == const Symbol('dart.dom.html');
+bool _inDartHtml(ClassMirror type) => type.owner.simpleName == #dart.dom.html;
/** Attribute prefix used for declarative event handlers. */
« no previous file with comments | « pkg/polymer/lib/deserialize.dart ('k') | pkg/polymer/lib/src/instance.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698