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

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

Issue 10915083: Change assert implementation to not depend on a top-level function called 'assert'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Moved assert detection further down. Now demetered. Created 8 years, 3 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
diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart
index 61fe59aa980548d3547f7374c519d610b0ead379..2bbdb5dec18156266c5f76de091a708556bc818b 100644
--- a/lib/compiler/implementation/elements/elements.dart
+++ b/lib/compiler/implementation/elements/elements.dart
@@ -158,6 +158,7 @@ class Element implements Hashable {
bool isTypedef() => kind === ElementKind.TYPEDEF;
bool isTypeVariable() => kind === ElementKind.TYPE_VARIABLE;
bool isField() => kind === ElementKind.FIELD;
+ bool isAbstractField() => kind === ElementKind.ABSTRACT_FIELD;
bool isGetter() => kind === ElementKind.GETTER;
bool isSetter() => kind === ElementKind.SETTER;
bool isAccessor() => isGetter() || isSetter();

Powered by Google App Engine
This is Rietveld 408576698