| OLD | NEW |
| 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 /** | 9 /** |
| 10 * Constructs a new Symbol. | 10 * Constructs a new Symbol. |
| 11 * | 11 * |
| 12 * An [ArgumentError] is thrown if [name] starts with an underscore, or if | 12 * An [ArgumentError] is thrown if [name] starts with an underscore, or if |
| 13 * [name] is not a [String]. An [ArgumentError] is thrown if [name] is not | 13 * [name] is not a [String]. An [ArgumentError] is thrown if [name] is not |
| 14 * an empty string and is not a valid qualified identifier optionally | 14 * an empty string and is not a valid qualified identifier optionally |
| 15 * followed by [:'=':]. | 15 * followed by [:'=':]. |
| 16 * | 16 * |
| 17 * The following text is non-normative: | 17 * The following text is non-normative: |
| 18 * | 18 * |
| 19 * Creating non-const Symbol instances may result in larger output. If | 19 * Creating non-const Symbol instances may result in larger output. If |
| 20 * possible, use [MirrorsUsed] in "dart:mirrors" to specify which names might | 20 * possible, use [MirrorsUsed] in "dart:mirrors" to specify which names might |
| 21 * be passed to this constructor. | 21 * be passed to this constructor. |
| 22 */ | 22 */ |
| 23 const factory Symbol(String name) = _collection_dev.Symbol; | 23 const factory Symbol(String name) = internal.Symbol; |
| 24 } | 24 } |
| OLD | NEW |