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 e3e610a060c0ffc606f3a9108fe1645ff18ebe2a..776922666a61e5688dbed9fa3aa0e0510a7e959c 100644 |
--- a/pkg/compiler/lib/src/elements/visitor.dart |
+++ b/pkg/compiler/lib/src/elements/visitor.dart |
@@ -29,6 +29,7 @@ abstract class ElementVisitor<R, A> { |
R visitFieldParameterElement(InitializingFormalElement e, A arg) => null; |
R visitAbstractFieldElement(AbstractFieldElement e, A arg) => null; |
R visitFunctionElement(FunctionElement 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; |
R visitMixinApplicationElement(MixinApplicationElement e, A arg) => null; |
@@ -47,7 +48,7 @@ abstract class BaseElementVisitor<R, A> extends ElementVisitor<R, A> { |
@override |
R visitErroneousElement(ErroneousElement e, A arg) { |
- return visitFunctionElement(e, arg); |
+ return visitElement(e, arg); |
} |
@override |
@@ -120,6 +121,11 @@ abstract class BaseElementVisitor<R, A> extends ElementVisitor<R, A> { |
} |
@override |
+ R visitConstructorElement(ConstructorElement e, A arg) { |
+ return visitFunctionElement(e, arg); |
+ } |
+ |
+ @override |
R visitConstructorBodyElement(ConstructorBodyElement e, A arg) { |
return visitElement(e, arg); |
} |