| 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._collection.dev; |   5 part of dart._internal; | 
|   6  |   6  | 
|   7 /** |   7 /** | 
|   8  * Implementation of [core.Symbol].  This class uses the same name as |   8  * Implementation of [core.Symbol].  This class uses the same name as | 
|   9  * a core class so a user can't tell the difference. |   9  * a core class so a user can't tell the difference. | 
|  10  * |  10  * | 
|  11  * The purpose of this class is to hide [_name] from user code, but |  11  * The purpose of this class is to hide [_name] from user code, but | 
|  12  * make it accessible to Dart platform code via the static method |  12  * make it accessible to Dart platform code via the static method | 
|  13  * [getName]. |  13  * [getName]. | 
|  14  */ |  14  */ | 
|  15 class Symbol implements core.Symbol { |  15 class Symbol implements core.Symbol { | 
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  68     if (name.startsWith('_')) { |  68     if (name.startsWith('_')) { | 
|  69       throw new ArgumentError('"$name" is a private identifier'); |  69       throw new ArgumentError('"$name" is a private identifier'); | 
|  70     } |  70     } | 
|  71     if (!validationPattern.hasMatch(name)) { |  71     if (!validationPattern.hasMatch(name)) { | 
|  72       throw new ArgumentError( |  72       throw new ArgumentError( | 
|  73           '"$name" is not an identifier or an empty String'); |  73           '"$name" is not an identifier or an empty String'); | 
|  74     } |  74     } | 
|  75     return name; |  75     return name; | 
|  76   } |  76   } | 
|  77 } |  77 } | 
| OLD | NEW |