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

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

Issue 2977623002: Restore visitLabelElement() and visitLocalVariableElement(). (Closed)
Patch Set: Created 3 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
« no previous file with comments | « pkg/analyzer/lib/dart/element/visitor.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/element/element.dart
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart
index c611cecb46e3e2925752cdd133028fdd4e82804b..014d84fd610f73e0660e012f74289ce93831e116 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -5524,7 +5524,7 @@ class LabelElementImpl extends ElementImpl implements LabelElement {
ElementKind get kind => ElementKind.LABEL;
@override
- T accept<T>(ElementVisitor<T> visitor) => throw new UnimplementedError();
+ T accept<T>(ElementVisitor<T> visitor) => visitor.visitLabelElement(this);
}
/**
@@ -6326,7 +6326,8 @@ class LocalVariableElementImpl extends NonParameterVariableElementImpl
}
@override
- T accept<T>(ElementVisitor<T> visitor) => throw new UnimplementedError();
+ T accept<T>(ElementVisitor<T> visitor) =>
+ visitor.visitLocalVariableElement(this);
@override
void appendTo(StringBuffer buffer) {
« no previous file with comments | « pkg/analyzer/lib/dart/element/visitor.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698