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

Side by Side Diff: pkg/compiler/lib/src/common_elements.dart

Issue 2859133003: Find native classes with mixins in NativeClassFinder (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 | « no previous file | pkg/compiler/lib/src/js_backend/backend.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // TODO(sigmund): rename and move to common/elements.dart 5 // TODO(sigmund): rename and move to common/elements.dart
6 library dart2js.type_system; 6 library dart2js.type_system;
7 7
8 import 'common/names.dart' show Identifiers, Uris; 8 import 'common/names.dart' show Identifiers, Uris;
9 import 'js_backend/constant_system_javascript.dart'; 9 import 'js_backend/constant_system_javascript.dart';
10 import 'elements/types.dart'; 10 import 'elements/types.dart';
(...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after
1190 /// Calls [f] for each class member declared or inherited in [cls] together 1190 /// Calls [f] for each class member declared or inherited in [cls] together
1191 /// with the class that declared the member. 1191 /// with the class that declared the member.
1192 /// 1192 ///
1193 /// TODO(johnniwinther): This should not include static members of 1193 /// TODO(johnniwinther): This should not include static members of
1194 /// superclasses. 1194 /// superclasses.
1195 void forEachClassMember( 1195 void forEachClassMember(
1196 ClassEntity cls, void f(ClassEntity declarer, MemberEntity member)); 1196 ClassEntity cls, void f(ClassEntity declarer, MemberEntity member));
1197 1197
1198 /// Returns the superclass of [cls]. 1198 /// Returns the superclass of [cls].
1199 /// 1199 ///
1200 /// Unnamed mixin applications are included, for instance for these classes 1200 /// If [skipUnnamedMixinApplications] is `true`, unnamed mixin applications
1201 /// are excluded, for instance for these classes
1201 /// 1202 ///
1202 /// class S {} 1203 /// class S {}
1203 /// class M {} 1204 /// class M {}
1204 /// class C extends S with M {} 1205 /// class C extends S with M {}
1205 /// 1206 ///
1206 /// the result of `getSuperClass(C)` is the unnamed mixin application 1207 /// the result of `getSuperClass(C)` is the unnamed mixin application
1207 /// typically named `S+M` and `getSuperClass(S+M)` is `S`. 1208 /// typically named `S+M` and `getSuperClass(S+M)` is `S`, whereas
1208 ClassEntity getSuperClass(ClassEntity cls); 1209 /// the result of `getSuperClass(C, skipUnnamedMixinApplications: false)` is
1210 /// `S`.
1211 ClassEntity getSuperClass(ClassEntity cls,
1212 {bool skipUnnamedMixinApplications: false});
1209 1213
1210 void forEachSupertype(ClassEntity cls, void f(InterfaceType supertype)); 1214 void forEachSupertype(ClassEntity cls, void f(InterfaceType supertype));
1211 1215
1212 /// Calls [f] for each class that is mixed into [cls] or one of its 1216 /// Calls [f] for each class that is mixed into [cls] or one of its
1213 /// superclasses. 1217 /// superclasses.
1214 void forEachMixin(ClassEntity cls, void f(ClassEntity mixin)); 1218 void forEachMixin(ClassEntity cls, void f(ClassEntity mixin));
1215 1219
1216 /// Create the instantiation of [cls] with the given [typeArguments]. 1220 /// Create the instantiation of [cls] with the given [typeArguments].
1217 InterfaceType createInterfaceType( 1221 InterfaceType createInterfaceType(
1218 ClassEntity cls, List<DartType> typeArguments); 1222 ClassEntity cls, List<DartType> typeArguments);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 DartType getUnaliasedType(DartType type); 1257 DartType getUnaliasedType(DartType type);
1254 1258
1255 /// Returns the [CallStructure] corresponding to calling [entity] with all 1259 /// Returns the [CallStructure] corresponding to calling [entity] with all
1256 /// arguments, both required and optional. 1260 /// arguments, both required and optional.
1257 CallStructure getCallStructure(FunctionEntity entity); 1261 CallStructure getCallStructure(FunctionEntity entity);
1258 1262
1259 /// Returns `true` if [member] a the synthetic getter `loadLibrary` injected 1263 /// Returns `true` if [member] a the synthetic getter `loadLibrary` injected
1260 /// on deferred libraries. 1264 /// on deferred libraries.
1261 bool isDeferredLoadLibraryGetter(MemberEntity member); 1265 bool isDeferredLoadLibraryGetter(MemberEntity member);
1262 } 1266 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698