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

Unified Diff: lib/src/info.dart

Issue 1228063003: fix for 1.12.0-dev SDK and 0.25.1 analyzer breaking changes (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 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/src/info.dart
diff --git a/lib/src/info.dart b/lib/src/info.dart
index 2e944d9790e1216ba2ce9942ac077e4720b002eb..1813efa99916c4013b8ec2abbfe5e4dea5e336b6 100644
--- a/lib/src/info.dart
+++ b/lib/src/info.dart
@@ -444,8 +444,7 @@ abstract class InvalidOverride extends StaticError {
fromMixin = node.parent is WithClause,
super(node);
- ClassDeclaration get parent =>
- element.enclosingElement.node as ClassDeclaration;
+ ClassElement get parent => element.enclosingElement;
Jennifer Messerly 2015/07/09 17:03:29 all we do here is get the name ... so we were pote
vsm 2015/07/09 17:09:56 yikes - good catch!
String _messageHelper(String errorName) {
var name = element.name;

Powered by Google App Engine
This is Rietveld 408576698