| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 testing.abstract_context; | 5 library testing.abstract_context; |
| 6 | 6 |
| 7 import 'package:analysis_testing/mock_sdk.dart'; | 7 import 'mock_sdk.dart'; |
| 8 import 'package:analyzer/file_system/file_system.dart'; | 8 import 'package:analyzer/file_system/file_system.dart'; |
| 9 import 'package:analyzer/file_system/memory_file_system.dart'; | 9 import 'package:analyzer/file_system/memory_file_system.dart'; |
| 10 import 'package:analyzer/src/generated/ast.dart'; | 10 import 'package:analyzer/src/generated/ast.dart'; |
| 11 import 'package:analyzer/src/generated/element.dart'; | 11 import 'package:analyzer/src/generated/element.dart'; |
| 12 import 'package:analyzer/src/generated/engine.dart'; | 12 import 'package:analyzer/src/generated/engine.dart'; |
| 13 import 'package:analyzer/src/generated/sdk.dart'; | 13 import 'package:analyzer/src/generated/sdk.dart'; |
| 14 import 'package:analyzer/src/generated/source_io.dart'; | 14 import 'package:analyzer/src/generated/source_io.dart'; |
| 15 | 15 |
| 16 | 16 |
| 17 /** | 17 /** |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 * [engine.GeneralizingElementVisitor]. | 94 * [engine.GeneralizingElementVisitor]. |
| 95 */ | 95 */ |
| 96 class _ElementVisitorFunctionWrapper extends GeneralizingElementVisitor { | 96 class _ElementVisitorFunctionWrapper extends GeneralizingElementVisitor { |
| 97 final _ElementVisitorFunction function; | 97 final _ElementVisitorFunction function; |
| 98 _ElementVisitorFunctionWrapper(this.function); | 98 _ElementVisitorFunctionWrapper(this.function); |
| 99 visitElement(Element element) { | 99 visitElement(Element element) { |
| 100 function(element); | 100 function(element); |
| 101 super.visitElement(element); | 101 super.visitElement(element); |
| 102 } | 102 } |
| 103 } | 103 } |
| OLD | NEW |