| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library visitor; | 5 library visitor; |
| 6 | 6 |
| 7 import 'elements.dart'; | |
| 8 import '../closure.dart' | 7 import '../closure.dart' |
| 9 show BoxFieldElement, ClosureClassElement, ClosureFieldElement; | 8 show BoxFieldElement, ClosureClassElement, ClosureFieldElement; |
| 9 import 'elements.dart'; |
| 10 | 10 |
| 11 abstract class ElementVisitor<R, A> { | 11 abstract class ElementVisitor<R, A> { |
| 12 const ElementVisitor(); | 12 const ElementVisitor(); |
| 13 | 13 |
| 14 R visit(Element e, A arg) => e.accept(this, arg); | 14 R visit(Element e, A arg) => e.accept(this, arg); |
| 15 | 15 |
| 16 R visitErroneousElement(ErroneousElement e, A arg) => null; | 16 R visitErroneousElement(ErroneousElement e, A arg) => null; |
| 17 R visitWarnOnUseElement(WarnOnUseElement e, A arg) => null; | 17 R visitWarnOnUseElement(WarnOnUseElement e, A arg) => null; |
| 18 R visitAmbiguousElement(AmbiguousElement e, A arg) => null; | 18 R visitAmbiguousElement(AmbiguousElement e, A arg) => null; |
| 19 R visitCompilationUnitElement(CompilationUnitElement e, A arg) => null; | 19 R visitCompilationUnitElement(CompilationUnitElement e, A arg) => null; |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 @override | 197 @override |
| 198 R visitClosureClassElement(ClosureClassElement e, A arg) { | 198 R visitClosureClassElement(ClosureClassElement e, A arg) { |
| 199 return visitClassElement(e, arg); | 199 return visitClassElement(e, arg); |
| 200 } | 200 } |
| 201 | 201 |
| 202 @override | 202 @override |
| 203 R visitClosureFieldElement(ClosureFieldElement e, A arg) { | 203 R visitClosureFieldElement(ClosureFieldElement e, A arg) { |
| 204 return visitVariableElement(e, arg); | 204 return visitVariableElement(e, arg); |
| 205 } | 205 } |
| 206 } | 206 } |
| OLD | NEW |