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

Unified Diff: dart/sdk/lib/core/symbol.dart

Issue 14173005: Update dart:mirrors to use Symbol. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Also use _symbol_dev.Symbol.getName in dart2js Created 7 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 | « dart/sdk/lib/core/core.dart ('k') | dart/sdk/lib/mirrors/mirrors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/core/symbol.dart
diff --git a/dart/sdk/lib/core/symbol.dart b/dart/sdk/lib/core/symbol.dart
index e2b686c2e160a3361644ccf186a174168a3b4861..163307fa49b199be27dfae492d507301cf4510f1 100644
--- a/dart/sdk/lib/core/symbol.dart
+++ b/dart/sdk/lib/core/symbol.dart
@@ -6,18 +6,13 @@ part of dart.core;
/// Opaque name used by mirrors, invocations and [Function.apply].
class Symbol {
-
/**
* Constructs a new Symbol.
*
* An [ArgumentError] is thrown if [name] starts with an underscore,
* or if [name] is not a [String]. An [ArgumentError] is thrown if
- * [name] is not an empty string and is not a valid identifier
- * optionally followed by [:'=':].
+ * [name] is not an empty string and is not a valid qualified
+ * identifier optionally followed by [:'=':].
*/
- external const Symbol(String name);
-
- external bool operator ==(other);
-
- external int get hashCode;
+ const factory Symbol(String name) = _collection_dev.Symbol;
}
« no previous file with comments | « dart/sdk/lib/core/core.dart ('k') | dart/sdk/lib/mirrors/mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698