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

Unified Diff: pkg/compiler/lib/src/closure.dart

Issue 1093363002: Refactor DartTypeVisitor and ElementVisitor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 5 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 | « no previous file | pkg/compiler/lib/src/dart_types.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/closure.dart
diff --git a/pkg/compiler/lib/src/closure.dart b/pkg/compiler/lib/src/closure.dart
index ac68fbd45f8249a36219cbe57cbb9cb1ca9fbe2d..242fb82e9cb7e767f6de0edc0f4b19741fdefb03 100644
--- a/pkg/compiler/lib/src/closure.dart
+++ b/pkg/compiler/lib/src/closure.dart
@@ -143,7 +143,9 @@ class ClosureFieldElement extends ElementX
String toString() => "ClosureFieldElement($name)";
- accept(ElementVisitor visitor) => visitor.visitClosureFieldElement(this);
+ accept(ElementVisitor visitor, arg) {
+ return visitor.visitClosureFieldElement(this, arg);
+ }
Element get analyzableElement => closureClass.methodElement.analyzableElement;
@@ -214,7 +216,9 @@ class ClosureClassElement extends ClassElementX {
get enclosingElement => methodElement;
- accept(ElementVisitor visitor) => visitor.visitClosureClassElement(this);
+ accept(ElementVisitor visitor, arg) {
+ return visitor.visitClosureClassElement(this, arg);
+ }
}
/// A local variable that contains the box object holding the [BoxFieldElement]
@@ -242,7 +246,9 @@ class BoxFieldElement extends ElementX
final VariableElement variableElement;
- accept(ElementVisitor visitor) => visitor.visitBoxFieldElement(this);
+ accept(ElementVisitor visitor, arg) {
+ return visitor.visitBoxFieldElement(this, arg);
+ }
@override
bool get hasNode => false;
« no previous file with comments | « no previous file | pkg/compiler/lib/src/dart_types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698