OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 js_backend; | 5 part of js_backend.namer; |
6 | 6 |
7 abstract class _NamerName extends jsAst.Name { | 7 abstract class _NamerName extends jsAst.Name { |
8 int get _kind; | 8 int get _kind; |
9 _NamerName get _target => this; | 9 _NamerName get _target => this; |
10 | 10 |
11 String toString() { | 11 String toString() { |
12 if (DEBUG_MODE) { | 12 if (DEBUG_MODE) { |
13 return 'Name($key)'; | 13 return 'Name($key)'; |
14 } | 14 } |
15 throw new UnsupportedError("Cannot convert a name to a string"); | 15 throw new UnsupportedError("Cannot convert a name to a string"); |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 211 |
212 @override | 212 @override |
213 int compareTo(_NamerName other) => _target.compareTo(other); | 213 int compareTo(_NamerName other) => _target.compareTo(other); |
214 | 214 |
215 @override | 215 @override |
216 bool operator ==(other) => _target == other; | 216 bool operator ==(other) => _target == other; |
217 | 217 |
218 @override | 218 @override |
219 int get hashCode => _target.hashCode; | 219 int get hashCode => _target.hashCode; |
220 } | 220 } |
OLD | NEW |