| 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 test.index; | 5 library test.index; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/resource.dart'; | 7 import 'package:analyzer/file_system/file_system.dart'; |
| 8 import 'package:analyzer/file_system/memory_file_system.dart'; |
| 8 import 'package:analyzer/src/generated/ast.dart'; | 9 import 'package:analyzer/src/generated/ast.dart'; |
| 9 import 'package:analyzer/src/generated/element.dart'; | 10 import 'package:analyzer/src/generated/element.dart'; |
| 10 import 'package:analyzer/src/generated/engine.dart'; | 11 import 'package:analyzer/src/generated/engine.dart'; |
| 11 import 'package:analyzer/src/generated/sdk.dart'; | 12 import 'package:analyzer/src/generated/sdk.dart'; |
| 12 import 'package:analyzer/src/generated/source_io.dart'; | 13 import 'package:analyzer/src/generated/source_io.dart'; |
| 13 | 14 |
| 14 import 'mocks.dart'; | 15 import 'mocks.dart'; |
| 15 import 'reflective_tests.dart'; | 16 import 'reflective_tests.dart'; |
| 16 | 17 |
| 17 | 18 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 * [engine.GeneralizingElementVisitor]. | 80 * [engine.GeneralizingElementVisitor]. |
| 80 */ | 81 */ |
| 81 class _ElementVisitorFunctionWrapper extends GeneralizingElementVisitor { | 82 class _ElementVisitorFunctionWrapper extends GeneralizingElementVisitor { |
| 82 final _ElementVisitorFunction function; | 83 final _ElementVisitorFunction function; |
| 83 _ElementVisitorFunctionWrapper(this.function); | 84 _ElementVisitorFunctionWrapper(this.function); |
| 84 visitElement(Element element) { | 85 visitElement(Element element) { |
| 85 function(element); | 86 function(element); |
| 86 super.visitElement(element); | 87 super.visitElement(element); |
| 87 } | 88 } |
| 88 } | 89 } |
| OLD | NEW |