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

Unified Diff: pkg/compiler/lib/src/elements/elements.dart

Issue 2925263002: A step towards handling `new Object()` in compile_from_dill_test (Closed)
Patch Set: Updated cf. comments Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/elements/common.dart ('k') | pkg/compiler/lib/src/elements/modelx.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/elements/elements.dart
diff --git a/pkg/compiler/lib/src/elements/elements.dart b/pkg/compiler/lib/src/elements/elements.dart
index 19b54a6e46b8eab0ddf41cc4b1c8d023f44f952f..690d1a31d1d8642c9f5b4e64cd7c21985ee0321f 100644
--- a/pkg/compiler/lib/src/elements/elements.dart
+++ b/pkg/compiler/lib/src/elements/elements.dart
@@ -507,17 +507,6 @@ class Elements {
(identical(element.kind, ElementKind.FUNCTION));
}
- /// Also returns true for [ConstructorBodyElement]s and getters/setters.
- static bool isNonAbstractInstanceMember(Element element) {
- // The generative constructor body is not a function. We therefore treat
- // it specially.
- if (element.isGenerativeConstructorBody) return true;
- return !Elements.isUnresolved(element) &&
- !element.isAbstract &&
- element.isInstanceMember &&
- (element.isFunction || element.isAccessor);
- }
-
static bool isInstanceSend(Send send, TreeElements elements) {
Element element = elements[send];
if (element == null) return !isClosureSend(send, element);
@@ -1511,7 +1500,7 @@ abstract class ClassElement extends TypeDeclarationElement
///
bool get isUnnamedMixinApplication;
- bool get hasBackendMembers;
+ bool get hasConstructorBodies;
bool get hasLocalScopeMembers;
/// Returns `true` if this class is `Object` from dart:core.
@@ -1542,8 +1531,7 @@ abstract class ClassElement extends TypeDeclarationElement
/// Returns `true` if the class hierarchy for this class contains errors.
bool get hasIncompleteHierarchy;
- void addBackendMember(Element element);
- void reverseBackendMembers();
+ void addConstructorBody(ConstructorBodyElement element);
Element lookupMember(String memberName);
@@ -1556,7 +1544,7 @@ abstract class ClassElement extends TypeDeclarationElement
MemberElement lookupSuperByName(Name memberName);
Element lookupLocalMember(String memberName);
- Element lookupBackendMember(String memberName);
+ ConstructorBodyElement lookupConstructorBody(String memberName);
Element lookupSuperMember(String memberName);
Element lookupSuperMemberInLibrary(String memberName, LibraryElement library);
@@ -1577,7 +1565,7 @@ abstract class ClassElement extends TypeDeclarationElement
/// Similar to [forEachInstanceField] but visits static fields.
void forEachStaticField(void f(ClassElement enclosingClass, Element field));
- void forEachBackendMember(void f(Element member));
+ void forEachConstructorBody(void f(ConstructorBodyElement member));
/// Looks up the member [name] in this class.
Member lookupClassMember(Name name);
« no previous file with comments | « pkg/compiler/lib/src/elements/common.dart ('k') | pkg/compiler/lib/src/elements/modelx.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698