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

Side by Side Diff: pkg/analyzer/test/generated/resolver_test.dart

Issue 2399913002: Remove 'initializeTestEnvironment' from 'analyzer'. (Closed)
Patch Set: Created 4 years, 2 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) 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 analyzer.test.generated.resolver_test; 5 library analyzer.test.generated.resolver_test;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.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/file_system/memory_file_system.dart'; 14 import 'package:analyzer/file_system/memory_file_system.dart';
15 import 'package:analyzer/src/dart/element/element.dart'; 15 import 'package:analyzer/src/dart/element/element.dart';
16 import 'package:analyzer/src/dart/element/type.dart'; 16 import 'package:analyzer/src/dart/element/type.dart';
17 import 'package:analyzer/src/error/codes.dart'; 17 import 'package:analyzer/src/error/codes.dart';
18 import 'package:analyzer/src/generated/engine.dart'; 18 import 'package:analyzer/src/generated/engine.dart';
19 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode; 19 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode;
20 import 'package:analyzer/src/generated/resolver.dart'; 20 import 'package:analyzer/src/generated/resolver.dart';
21 import 'package:analyzer/src/generated/source_io.dart'; 21 import 'package:analyzer/src/generated/source_io.dart';
22 import 'package:analyzer/src/generated/testing/ast_factory.dart'; 22 import 'package:analyzer/src/generated/testing/ast_factory.dart';
23 import 'package:analyzer/src/generated/testing/element_factory.dart'; 23 import 'package:analyzer/src/generated/testing/element_factory.dart';
24 import 'package:analyzer/src/generated/testing/test_type_provider.dart'; 24 import 'package:analyzer/src/generated/testing/test_type_provider.dart';
25 import 'package:analyzer/src/generated/utilities_dart.dart'; 25 import 'package:analyzer/src/generated/utilities_dart.dart';
26 import 'package:analyzer/src/source/source_resource.dart'; 26 import 'package:analyzer/src/source/source_resource.dart';
27 import 'package:test/test.dart'; 27 import 'package:test/test.dart';
28 import 'package:test_reflective_loader/test_reflective_loader.dart'; 28 import 'package:test_reflective_loader/test_reflective_loader.dart';
29 29
30 import '../utils.dart';
31 import 'analysis_context_factory.dart'; 30 import 'analysis_context_factory.dart';
32 import 'resolver_test_case.dart'; 31 import 'resolver_test_case.dart';
33 import 'test_support.dart'; 32 import 'test_support.dart';
34 33
35 main() { 34 main() {
36 initializeTestEnvironment();
37 defineReflectiveSuite(() { 35 defineReflectiveSuite(() {
38 defineReflectiveTests(AnalysisDeltaTest); 36 defineReflectiveTests(AnalysisDeltaTest);
39 defineReflectiveTests(ChangeSetTest); 37 defineReflectiveTests(ChangeSetTest);
40 defineReflectiveTests(EnclosedScopeTest); 38 defineReflectiveTests(EnclosedScopeTest);
41 defineReflectiveTests(ErrorResolverTest); 39 defineReflectiveTests(ErrorResolverTest);
42 defineReflectiveTests(LibraryImportScopeTest); 40 defineReflectiveTests(LibraryImportScopeTest);
43 defineReflectiveTests(LibraryScopeTest); 41 defineReflectiveTests(LibraryScopeTest);
44 defineReflectiveTests(PrefixedNamespaceTest); 42 defineReflectiveTests(PrefixedNamespaceTest);
45 defineReflectiveTests(ScopeTest); 43 defineReflectiveTests(ScopeTest);
46 defineReflectiveTests(StrictModeTest); 44 defineReflectiveTests(StrictModeTest);
(...skipping 3148 matching lines...) Expand 10 before | Expand all | Expand 10 after
3195 */ 3193 */
3196 class _StaleElement extends ElementImpl { 3194 class _StaleElement extends ElementImpl {
3197 _StaleElement() : super("_StaleElement", -1); 3195 _StaleElement() : super("_StaleElement", -1);
3198 3196
3199 @override 3197 @override
3200 get kind => throw "_StaleElement's kind shouldn't be accessed"; 3198 get kind => throw "_StaleElement's kind shouldn't be accessed";
3201 3199
3202 @override 3200 @override
3203 accept(_) => throw "_StaleElement shouldn't be visited"; 3201 accept(_) => throw "_StaleElement shouldn't be visited";
3204 } 3202 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/parser_test.dart ('k') | pkg/analyzer/test/generated/scanner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698