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

Unified Diff: pkg/compiler/lib/src/elements/visitor.dart

Issue 1856713002: Test ResolutionImpact equivalence. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments Created 4 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/compiler/lib/src/elements/modelx.dart ('k') | pkg/compiler/lib/src/serialization/equivalence.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/elements/visitor.dart
diff --git a/pkg/compiler/lib/src/elements/visitor.dart b/pkg/compiler/lib/src/elements/visitor.dart
index 23d526349b19e94a29d3ecb47500ef64ddf13cea..b571e56469ed807d28f79d9be183a0da60b00e20 100644
--- a/pkg/compiler/lib/src/elements/visitor.dart
+++ b/pkg/compiler/lib/src/elements/visitor.dart
@@ -30,7 +30,10 @@ abstract class ElementVisitor<R, A> {
R visitFieldElement(FieldElement e, A arg) => null;
R visitFieldParameterElement(InitializingFormalElement e, A arg) => null;
R visitAbstractFieldElement(AbstractFieldElement e, A arg) => null;
- R visitFunctionElement(FunctionElement e, A arg) => null;
+ R visitMethodElement(FunctionElement e, A arg) => null;
+ R visitGetterElement(GetterElement e, A arg) => null;
+ R visitSetterElement(SetterElement e, A arg) => null;
+ R visitLocalFunctionElement(LocalFunctionElement e, A arg) => null;
R visitConstructorElement(ConstructorElement e, A arg) => null;
R visitConstructorBodyElement(ConstructorBodyElement e, A arg) => null;
R visitClassElement(ClassElement e, A arg) => null;
@@ -127,12 +130,31 @@ abstract class BaseElementVisitor<R, A> extends ElementVisitor<R, A> {
return visitElement(e, arg);
}
- @override
R visitFunctionElement(FunctionElement e, A arg) {
return visitElement(e, arg);
}
@override
+ R visitMethodElement(MethodElement e, A arg) {
+ return visitFunctionElement(e, arg);
+ }
+
+ @override
+ R visitGetterElement(GetterElement e, A arg) {
+ return visitFunctionElement(e, arg);
+ }
+
+ @override
+ R visitSetterElement(SetterElement e, A arg) {
+ return visitFunctionElement(e, arg);
+ }
+
+ @override
+ R visitLocalFunctionElement(LocalFunctionElement e, A arg) {
+ return visitFunctionElement(e, arg);
+ }
+
+ @override
R visitConstructorElement(ConstructorElement e, A arg) {
return visitFunctionElement(e, arg);
}
« no previous file with comments | « pkg/compiler/lib/src/elements/modelx.dart ('k') | pkg/compiler/lib/src/serialization/equivalence.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698