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 containing identifier, names, and selectors commonly used through | 5 /// Library containing identifier, names, and selectors commonly used through |
6 /// the compiler. | 6 /// the compiler. |
7 library dart2js.common.names; | 7 library dart2js.common.names; |
8 | 8 |
9 import '../elements/elements.dart' show | 9 import '../elements/elements.dart' show |
10 Name, | 10 Name, |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 /// The selector for calling the to-string method on 'Object'. | 81 /// The selector for calling the to-string method on 'Object'. |
82 static final Selector toString_ = | 82 static final Selector toString_ = |
83 new Selector.call(Names.toString_, CallStructure.NO_ARGS); | 83 new Selector.call(Names.toString_, CallStructure.NO_ARGS); |
84 | 84 |
85 static final Selector hashCode_ = | 85 static final Selector hashCode_ = |
86 new Selector.getter(const PublicName('hashCode')); | 86 new Selector.getter(const PublicName('hashCode')); |
87 | 87 |
88 static final Selector compareTo = | 88 static final Selector compareTo = |
89 new Selector.call(const PublicName("compareTo"), CallStructure.ONE_ARG); | 89 new Selector.call(const PublicName("compareTo"), CallStructure.ONE_ARG); |
| 90 |
| 91 static final Selector equals = new Selector.binaryOperator('=='); |
90 } | 92 } |
91 | 93 |
92 /// [Uri]s commonly used. | 94 /// [Uri]s commonly used. |
93 class Uris { | 95 class Uris { |
94 /// The URI for 'dart:async'. | 96 /// The URI for 'dart:async'. |
95 static final Uri dart_async = new Uri(scheme: 'dart', path: 'async'); | 97 static final Uri dart_async = new Uri(scheme: 'dart', path: 'async'); |
96 | 98 |
97 /// The URI for 'dart:core'. | 99 /// The URI for 'dart:core'. |
98 static final Uri dart_core = new Uri(scheme: 'dart', path: 'core'); | 100 static final Uri dart_core = new Uri(scheme: 'dart', path: 'core'); |
99 | 101 |
100 /// The URI for 'dart:html'. | 102 /// The URI for 'dart:html'. |
101 static final Uri dart_html = new Uri(scheme: 'dart', path: 'html'); | 103 static final Uri dart_html = new Uri(scheme: 'dart', path: 'html'); |
102 | 104 |
103 /// The URI for 'dart:mirrors'. | 105 /// The URI for 'dart:mirrors'. |
104 static final Uri dart_mirrors = new Uri(scheme: 'dart', path: 'mirrors'); | 106 static final Uri dart_mirrors = new Uri(scheme: 'dart', path: 'mirrors'); |
105 | 107 |
106 /// The URI for 'dart:_internal'. | 108 /// The URI for 'dart:_internal'. |
107 static final Uri dart__internal = new Uri(scheme: 'dart', path: '_internal'); | 109 static final Uri dart__internal = new Uri(scheme: 'dart', path: '_internal'); |
108 | 110 |
109 /// The URI for 'dart:_native_typed_data'. | 111 /// The URI for 'dart:_native_typed_data'. |
110 static final Uri dart__native_typed_data = | 112 static final Uri dart__native_typed_data = |
111 new Uri(scheme: 'dart', path: '_native_typed_data'); | 113 new Uri(scheme: 'dart', path: '_native_typed_data'); |
112 } | 114 } |
OLD | NEW |