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

Unified Diff: pkg/analyzer/lib/src/generated/element.dart

Issue 1055413003: Introduce common superclass to fix ClassElement.node (issue 23120) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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/analyzer/lib/src/generated/ast.dart ('k') | pkg/analyzer/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/element.dart
diff --git a/pkg/analyzer/lib/src/generated/element.dart b/pkg/analyzer/lib/src/generated/element.dart
index ed87c1fa7bd3a93fc593e0f1a4121dfa83f67e99..120ff4ac8db92ef15e69f2469f5844731671ef86 100644
--- a/pkg/analyzer/lib/src/generated/element.dart
+++ b/pkg/analyzer/lib/src/generated/element.dart
@@ -225,7 +225,7 @@ abstract class ClassElement implements Element {
* so parsing and resolving will be performed.
*/
@override
- AstNode get node;
+ NamedCompilationUnitMember get node;
/**
* Return the superclass of this class, or `null` if the class represents the
@@ -701,7 +701,7 @@ class ClassElementImpl extends ElementImpl implements ClassElement {
}
@override
- AstNode get node {
+ NamedCompilationUnitMember get node {
if (isEnum) {
return getNodeMatching((node) => node is EnumDeclaration);
} else {
« no previous file with comments | « pkg/analyzer/lib/src/generated/ast.dart ('k') | pkg/analyzer/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698