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

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

Issue 2797173004: Remove use of Element in ResolutionEnqueuerListener. (Closed)
Patch Set: Created 3 years, 8 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/compiler.dart ('k') | pkg/compiler/lib/src/elements/types.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/elements/entities.dart
diff --git a/pkg/compiler/lib/src/elements/entities.dart b/pkg/compiler/lib/src/elements/entities.dart
index d9d864cf418cbc08d12b8582756dd6b399c7295b..c6af6b95ad8167df040f7d75c40301bc6fd26584 100644
--- a/pkg/compiler/lib/src/elements/entities.dart
+++ b/pkg/compiler/lib/src/elements/entities.dart
@@ -23,7 +23,10 @@ abstract class Entity implements Spannable {
///
/// Currently only [LibraryElement] but later also kernel based Dart classes
/// and/or Dart-in-JS classes.
-abstract class LibraryEntity extends Entity {}
+abstract class LibraryEntity extends Entity {
+ /// Return the canonical uri that identifies this library.
+ Uri get canonicalUri;
+}
/// Stripped down super interface for class like entities.
///
@@ -83,7 +86,10 @@ abstract class MemberEntity extends Entity {
/// Whether this member is assignable, i.e. a non-final field.
bool get isAssignable;
- /// The enclosing class if this is a constuctor, instance member or
+ /// Whether this member is constant, i.e. a constant field or constructor.
+ bool get isConst;
+
+ /// The enclosing class if this is a constructor, instance member or
/// static member of a class.
ClassEntity get enclosingClass;
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/elements/types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698