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

Side by Side Diff: pkg/analyzer/test/src/dart/analysis/base.dart

Issue 2883633002: Extract PerformanceLogger from AnalysisDriver. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 import 'package:analyzer/dart/element/element.dart'; 5 import 'package:analyzer/dart/element/element.dart';
6 import 'package:analyzer/dart/element/visitor.dart'; 6 import 'package:analyzer/dart/element/visitor.dart';
7 import 'package:analyzer/file_system/file_system.dart'; 7 import 'package:analyzer/file_system/file_system.dart';
8 import 'package:analyzer/file_system/memory_file_system.dart'; 8 import 'package:analyzer/file_system/memory_file_system.dart';
9 import 'package:analyzer/source/package_map_resolver.dart'; 9 import 'package:analyzer/source/package_map_resolver.dart';
10 import 'package:analyzer/src/dart/analysis/driver.dart'; 10 import 'package:analyzer/src/dart/analysis/driver.dart';
11 import 'package:analyzer/src/dart/analysis/file_state.dart'; 11 import 'package:analyzer/src/dart/analysis/file_state.dart';
12 import 'package:analyzer/src/dart/analysis/status.dart'; 12 import 'package:analyzer/src/dart/analysis/status.dart';
13 import 'package:analyzer/src/generated/engine.dart' show AnalysisOptionsImpl; 13 import 'package:analyzer/src/generated/engine.dart' show AnalysisOptionsImpl;
14 import 'package:analyzer/src/generated/sdk.dart'; 14 import 'package:analyzer/src/generated/sdk.dart';
15 import 'package:analyzer/src/generated/source.dart'; 15 import 'package:analyzer/src/generated/source.dart';
16 import 'package:analyzer/src/summary/package_bundle_reader.dart'; 16 import 'package:analyzer/src/summary/package_bundle_reader.dart';
17 import 'package:front_end/src/base/performace_logger.dart';
17 import 'package:front_end/src/incremental/byte_store.dart'; 18 import 'package:front_end/src/incremental/byte_store.dart';
18 import 'package:test/test.dart'; 19 import 'package:test/test.dart';
19 import 'package:typed_mock/typed_mock.dart'; 20 import 'package:typed_mock/typed_mock.dart';
20 21
21 import '../../context/mock_sdk.dart'; 22 import '../../context/mock_sdk.dart';
22 23
23 /** 24 /**
24 * Finds an [Element] with the given [name]. 25 * Finds an [Element] with the given [name].
25 */ 26 */
26 Element findChildElement(Element root, String name, [ElementKind kind]) { 27 Element findChildElement(Element root, String name, [ElementKind kind]) {
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 154
154 _ElementVisitorFunctionWrapper(this.function); 155 _ElementVisitorFunctionWrapper(this.function);
155 156
156 visitElement(Element element) { 157 visitElement(Element element) {
157 function(element); 158 function(element);
158 super.visitElement(element); 159 super.visitElement(element);
159 } 160 }
160 } 161 }
161 162
162 class _GeneratedUriResolverMock extends TypedMock implements UriResolver {} 163 class _GeneratedUriResolverMock extends TypedMock implements UriResolver {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698