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

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

Issue 2971253002: Remove 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') | pkg/analyzer/test/generated/strong_mode_test.dart » ('j') | 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 d313a165421782528b6f591bdb244d67d11e705d..a70fe674ed1921c22c2a3f90df83807230cde4b4 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -5561,7 +5561,7 @@ class LabelElementImpl extends ElementImpl implements LabelElement {
}
@override
- T accept<T>(ElementVisitor<T> visitor) => visitor.visitLabelElement(this);
+ T accept<T>(ElementVisitor<T> visitor) => null;
Brian Wilkerson 2017/07/06 22:42:52 It would be better to throw a not-implemented exce
scheglov 2017/07/07 15:05:33 Done.
/**
* Create and return [LabelElement]s for the given [unlinkedLabels].
@@ -6382,8 +6382,7 @@ class LocalVariableElementImpl extends NonParameterVariableElementImpl
}
@override
- T accept<T>(ElementVisitor<T> visitor) =>
- visitor.visitLocalVariableElement(this);
+ T accept<T>(ElementVisitor<T> visitor) => null;
@override
void appendTo(StringBuffer buffer) {
« no previous file with comments | « pkg/analyzer/lib/dart/element/visitor.dart ('k') | pkg/analyzer/test/generated/strong_mode_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698