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

Unified Diff: lib/compiler/implementation/elements/elements.dart

Issue 10191016: Introduce typed selectors for getters and setters also for better tree shaking. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
Index: lib/compiler/implementation/elements/elements.dart
===================================================================
--- lib/compiler/implementation/elements/elements.dart (revision 6933)
+++ lib/compiler/implementation/elements/elements.dart (working copy)
@@ -126,6 +126,7 @@
bool isStatement() => kind === ElementKind.STATEMENT;
bool isTypedef() => kind === ElementKind.TYPEDEF;
bool isTypeVariable() => kind === ElementKind.TYPE_VARIABLE;
+ bool isField() => kind === ElementKind.FIELD;
bool isGetter() => kind === ElementKind.GETTER;
bool isSetter() => kind === ElementKind.SETTER;
bool impliesType() => (kind.category & ElementCategory.IMPLIES_TYPE) != 0;

Powered by Google App Engine
This is Rietveld 408576698