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

Side by Side Diff: pkg/compiler/lib/src/common/backend_api.dart

Issue 2595493002: Merge CoreTypes and CoreClasses into CommonElements. (Closed)
Patch Set: Updated cf. comment Created 4 years 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 | « no previous file | pkg/compiler/lib/src/common/resolution.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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.backend_api; 5 library dart2js.backend_api;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/codegen.dart' show CodegenImpact; 10 import '../common/codegen.dart' show CodegenImpact;
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 /// Returns whether or not `noSuchMethod` support has been enabled. 182 /// Returns whether or not `noSuchMethod` support has been enabled.
183 bool get enabledNoSuchMethod => false; 183 bool get enabledNoSuchMethod => false;
184 184
185 /// Called to enable support for isolates. Any backend specific [WorldImpact] 185 /// Called to enable support for isolates. Any backend specific [WorldImpact]
186 /// of this is returned. 186 /// of this is returned.
187 WorldImpact enableIsolateSupport({bool forResolution}); 187 WorldImpact enableIsolateSupport({bool forResolution});
188 188
189 void registerConstSymbol(String name) {} 189 void registerConstSymbol(String name) {}
190 190
191 ClassElement defaultSuperclass(ClassElement element) { 191 ClassElement defaultSuperclass(ClassElement element) {
192 return compiler.coreClasses.objectClass; 192 return compiler.commonElements.objectClass;
193 } 193 }
194 194
195 bool isInterceptorClass(ClassElement element) => false; 195 bool isInterceptorClass(ClassElement element) => false;
196 196
197 /// Returns `true` if [element] is implemented via typed JavaScript interop. 197 /// Returns `true` if [element] is implemented via typed JavaScript interop.
198 // TODO(johnniwinther): Move this to [JavaScriptBackend]. 198 // TODO(johnniwinther): Move this to [JavaScriptBackend].
199 bool isJsInterop(Element element) => false; 199 bool isJsInterop(Element element) => false;
200 200
201 /// Returns `true` if the `native` pseudo keyword is supported for [library]. 201 /// Returns `true` if the `native` pseudo keyword is supported for [library].
202 bool canLibraryUseNative(LibraryElement library) { 202 bool canLibraryUseNative(LibraryElement library) {
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 ClassElement get asyncStarStreamImplementation; 420 ClassElement get asyncStarStreamImplementation;
421 ClassElement get indexableImplementation; 421 ClassElement get indexableImplementation;
422 ClassElement get mutableIndexableImplementation; 422 ClassElement get mutableIndexableImplementation;
423 ClassElement get indexingBehaviorImplementation; 423 ClassElement get indexingBehaviorImplementation;
424 ClassElement get interceptorImplementation; 424 ClassElement get interceptorImplementation;
425 425
426 bool isDefaultEqualityImplementation(Element element); 426 bool isDefaultEqualityImplementation(Element element);
427 bool isInterceptorClass(ClassElement cls); 427 bool isInterceptorClass(ClassElement cls);
428 bool isNative(Element element); 428 bool isNative(Element element);
429 } 429 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/common/resolution.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698