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

Side by Side Diff: pkg/compiler/lib/src/universe/selector.dart

Issue 2860753005: Make elements/names.dart its own library (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « pkg/compiler/lib/src/typechecker.dart ('k') | pkg/compiler/lib/src/use_unused_api.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) 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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/typechecker.dart ('k') | pkg/compiler/lib/src/use_unused_api.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698