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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « dart/sdk/lib/core/core.dart ('k') | dart/sdk/lib/mirrors/mirrors.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.core; 5 part of dart.core;
6 6
7 /// Opaque name used by mirrors, invocations and [Function.apply]. 7 /// Opaque name used by mirrors, invocations and [Function.apply].
8 class Symbol { 8 class Symbol {
9
10 /** 9 /**
11 * Constructs a new Symbol. 10 * Constructs a new Symbol.
12 * 11 *
13 * An [ArgumentError] is thrown if [name] starts with an underscore, 12 * An [ArgumentError] is thrown if [name] starts with an underscore,
14 * or if [name] is not a [String]. An [ArgumentError] is thrown if 13 * or if [name] is not a [String]. An [ArgumentError] is thrown if
15 * [name] is not an empty string and is not a valid identifier 14 * [name] is not an empty string and is not a valid qualified
16 * optionally followed by [:'=':]. 15 * identifier optionally followed by [:'=':].
17 */ 16 */
18 external const Symbol(String name); 17 const factory Symbol(String name) = _collection_dev.Symbol;
19
20 external bool operator ==(other);
21
22 external int get hashCode;
23 } 18 }
OLDNEW
« 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