| 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 library dart2js.selector; | 5 library dart2js.selector; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/names.dart' show Names; | 8 import '../common/names.dart' show Names; |
| 9 import '../elements/elements.dart' | 9 import '../elements/elements.dart' show Element, Elements, FunctionSignature; |
| 10 show Element, Elements, FunctionSignature, Name, PublicName; | |
| 11 import '../elements/entities.dart'; | 10 import '../elements/entities.dart'; |
| 11 import '../elements/names.dart'; |
| 12 import '../util/util.dart' show Hashing; | 12 import '../util/util.dart' show Hashing; |
| 13 import 'call_structure.dart' show CallStructure; | 13 import 'call_structure.dart' show CallStructure; |
| 14 | 14 |
| 15 class SelectorKind { | 15 class SelectorKind { |
| 16 final String name; | 16 final String name; |
| 17 final int hashCode; | 17 final int hashCode; |
| 18 const SelectorKind(this.name, this.hashCode); | 18 const SelectorKind(this.name, this.hashCode); |
| 19 | 19 |
| 20 static const SelectorKind GETTER = const SelectorKind('getter', 0); | 20 static const SelectorKind GETTER = const SelectorKind('getter', 0); |
| 21 static const SelectorKind SETTER = const SelectorKind('setter', 1); | 21 static const SelectorKind SETTER = const SelectorKind('setter', 1); |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 // Add bits from the call structure. | 254 // Add bits from the call structure. |
| 255 return Hashing.mixHashCodeBits(hash, callStructure.hashCode); | 255 return Hashing.mixHashCodeBits(hash, callStructure.hashCode); |
| 256 } | 256 } |
| 257 | 257 |
| 258 String toString() { | 258 String toString() { |
| 259 return 'Selector($kind, $name, ${callStructure.structureToString()})'; | 259 return 'Selector($kind, $name, ${callStructure.structureToString()})'; |
| 260 } | 260 } |
| 261 | 261 |
| 262 Selector toCallSelector() => new Selector.callClosureFrom(this); | 262 Selector toCallSelector() => new Selector.callClosureFrom(this); |
| 263 } | 263 } |
| OLD | NEW |