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); |
} |