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

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

Issue 1132783002: Add Accessor, Getter, and Setter elements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 5 years, 7 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/library_loader.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 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);
}
« no previous file with comments | « pkg/compiler/lib/src/elements/modelx.dart ('k') | pkg/compiler/lib/src/library_loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698