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

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

Issue 2968383002: Add ConstructorBodyEntity (Closed)
Patch Set: Created 3 years, 5 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
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 'constants/values.dart'; 9 import 'constants/values.dart';
10 import 'elements/entities.dart'; 10 import 'elements/entities.dart';
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1223 /// 1223 ///
1224 /// TODO(johnniwinther): This should not include static members of 1224 /// TODO(johnniwinther): This should not include static members of
1225 /// superclasses. 1225 /// superclasses.
1226 void forEachClassMember( 1226 void forEachClassMember(
1227 ClassEntity cls, void f(ClassEntity declarer, MemberEntity member)); 1227 ClassEntity cls, void f(ClassEntity declarer, MemberEntity member));
1228 1228
1229 /// Calls [f] for every constructor declared in [cls]. 1229 /// Calls [f] for every constructor declared in [cls].
1230 void forEachConstructor( 1230 void forEachConstructor(
1231 ClassEntity cls, void f(ConstructorEntity constructor)); 1231 ClassEntity cls, void f(ConstructorEntity constructor));
1232 1232
1233 /// Calls [f] for every constructor body in [cls].
1234 void forEachConstructorBody(
1235 ClassEntity cls, void f(ConstructorBodyEntity constructorBody));
1236
1233 /// Returns the superclass of [cls]. 1237 /// Returns the superclass of [cls].
1234 /// 1238 ///
1235 /// If [skipUnnamedMixinApplications] is `true`, unnamed mixin applications 1239 /// If [skipUnnamedMixinApplications] is `true`, unnamed mixin applications
1236 /// are excluded, for instance for these classes 1240 /// are excluded, for instance for these classes
1237 /// 1241 ///
1238 /// class S {} 1242 /// class S {}
1239 /// class M {} 1243 /// class M {}
1240 /// class C extends S with M {} 1244 /// class C extends S with M {}
1241 /// 1245 ///
1242 /// the result of `getSuperClass(C)` is the unnamed mixin application 1246 /// the result of `getSuperClass(C)` is the unnamed mixin application
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
1312 // TODO(johnniwinther): Remove this when the resolver is removed. 1316 // TODO(johnniwinther): Remove this when the resolver is removed.
1313 DartType getUnaliasedType(DartType type); 1317 DartType getUnaliasedType(DartType type);
1314 1318
1315 /// Returns `true` if [member] a the synthetic getter `loadLibrary` injected 1319 /// Returns `true` if [member] a the synthetic getter `loadLibrary` injected
1316 /// on deferred libraries. 1320 /// on deferred libraries.
1317 bool isDeferredLoadLibraryGetter(MemberEntity member); 1321 bool isDeferredLoadLibraryGetter(MemberEntity member);
1318 1322
1319 /// Returns the metadata constants declared on [member]. 1323 /// Returns the metadata constants declared on [member].
1320 Iterable<ConstantValue> getMemberMetadata(MemberEntity member); 1324 Iterable<ConstantValue> getMemberMetadata(MemberEntity member);
1321 } 1325 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/elements/elements.dart » ('j') | pkg/compiler/lib/src/elements/entities.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698