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

Side by Side Diff: pkg/analyzer/test/generated/resolver_test_case.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 library analyzer.test.generated.resolver_test_case; 5 library analyzer.test.generated.resolver_test_case;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; 10 import 'package:analyzer/dart/ast/standard_resolution_map.dart';
11 import 'package:analyzer/dart/ast/visitor.dart'; 11 import 'package:analyzer/dart/ast/visitor.dart';
12 import 'package:analyzer/dart/element/element.dart'; 12 import 'package:analyzer/dart/element/element.dart';
13 import 'package:analyzer/dart/element/type.dart'; 13 import 'package:analyzer/dart/element/type.dart';
14 import 'package:analyzer/error/error.dart'; 14 import 'package:analyzer/error/error.dart';
15 import 'package:analyzer/file_system/file_system.dart'; 15 import 'package:analyzer/file_system/file_system.dart';
16 import 'package:analyzer/file_system/memory_file_system.dart'; 16 import 'package:analyzer/file_system/memory_file_system.dart';
17 import 'package:analyzer/source/package_map_resolver.dart'; 17 import 'package:analyzer/source/package_map_resolver.dart';
18 import 'package:analyzer/src/dart/analysis/driver.dart'; 18 import 'package:analyzer/src/dart/analysis/driver.dart';
19 import 'package:analyzer/src/dart/analysis/file_state.dart'; 19 import 'package:analyzer/src/dart/analysis/file_state.dart';
20 import 'package:analyzer/src/dart/element/element.dart'; 20 import 'package:analyzer/src/dart/element/element.dart';
21 import 'package:analyzer/src/dart/element/type.dart'; 21 import 'package:analyzer/src/dart/element/type.dart';
22 import 'package:analyzer/src/error/codes.dart'; 22 import 'package:analyzer/src/error/codes.dart';
23 import 'package:analyzer/src/generated/engine.dart' hide AnalysisResult; 23 import 'package:analyzer/src/generated/engine.dart' hide AnalysisResult;
24 import 'package:analyzer/src/generated/java_engine.dart'; 24 import 'package:analyzer/src/generated/java_engine.dart';
25 import 'package:analyzer/src/generated/resolver.dart'; 25 import 'package:analyzer/src/generated/resolver.dart';
26 import 'package:analyzer/src/generated/sdk.dart'; 26 import 'package:analyzer/src/generated/sdk.dart';
27 import 'package:analyzer/src/generated/source_io.dart'; 27 import 'package:analyzer/src/generated/source_io.dart';
28 import 'package:analyzer/src/generated/testing/ast_test_factory.dart'; 28 import 'package:analyzer/src/generated/testing/ast_test_factory.dart';
29 import 'package:analyzer/src/generated/testing/element_factory.dart'; 29 import 'package:analyzer/src/generated/testing/element_factory.dart';
30 import 'package:front_end/src/base/performace_logger.dart';
30 import 'package:front_end/src/incremental/byte_store.dart'; 31 import 'package:front_end/src/incremental/byte_store.dart';
31 import 'package:test/test.dart'; 32 import 'package:test/test.dart';
32 33
33 import '../src/context/mock_sdk.dart'; 34 import '../src/context/mock_sdk.dart';
34 import 'analysis_context_factory.dart'; 35 import 'analysis_context_factory.dart';
35 import 'test_support.dart'; 36 import 'test_support.dart';
36 37
37 /** 38 /**
38 * An AST visitor used to verify that all of the nodes in an AST structure that 39 * An AST visitor used to verify that all of the nodes in an AST structure that
39 * should have been resolved were resolved. 40 * should have been resolved were resolved.
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 } 930 }
930 } 931 }
931 } 932 }
932 933
933 class TestAnalysisResult { 934 class TestAnalysisResult {
934 final Source source; 935 final Source source;
935 final CompilationUnit unit; 936 final CompilationUnit unit;
936 final List<AnalysisError> errors; 937 final List<AnalysisError> errors;
937 TestAnalysisResult(this.source, this.unit, this.errors); 938 TestAnalysisResult(this.source, this.unit, this.errors);
938 } 939 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698