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

Unified Diff: pkg/observe/lib/transform.dart

Issue 23769002: Fix build for pub after new analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/observe/lib/transform.dart
diff --git a/pkg/observe/lib/transform.dart b/pkg/observe/lib/transform.dart
index 145c3a389e38529cd336a36f2188debdde0235ad..029a0172e7de8d24b1de3c381a89862040e0ef7b 100644
--- a/pkg/observe/lib/transform.dart
+++ b/pkg/observe/lib/transform.dart
@@ -173,8 +173,7 @@ void _transformClass(ClassDeclaration cls, TextEditTransaction code,
for (var member in cls.members) {
if (member is FieldDeclaration) {
- bool isStatic = _hasKeyword(member.keyword, Keyword.STATIC);
- if (isStatic) {
+ if (member.isStatic) {
if (_hasObservable(member)){
logger.warning('Static fields can no longer be observable. '
'Observable fields should be put in an observable objects.',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698