| 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 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/visitor.dart'; | 10 import 'package:analyzer/dart/ast/visitor.dart'; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 import 'package:unittest/unittest.dart'; | 37 import 'package:unittest/unittest.dart'; |
| 38 | 38 |
| 39 import '../reflective_tests.dart'; | 39 import '../reflective_tests.dart'; |
| 40 import '../utils.dart'; | 40 import '../utils.dart'; |
| 41 import 'test_support.dart'; | 41 import 'test_support.dart'; |
| 42 | 42 |
| 43 main() { | 43 main() { |
| 44 initializeTestEnvironment(); | 44 initializeTestEnvironment(); |
| 45 runReflectiveTests(AnalysisDeltaTest); | 45 runReflectiveTests(AnalysisDeltaTest); |
| 46 runReflectiveTests(ChangeSetTest); | 46 runReflectiveTests(ChangeSetTest); |
| 47 runReflectiveTests(CheckedModeCompileTimeErrorCodeTest); |
| 47 runReflectiveTests(DisableAsyncTestCase); | 48 runReflectiveTests(DisableAsyncTestCase); |
| 49 runReflectiveTests(ElementResolverTest); |
| 48 runReflectiveTests(EnclosedScopeTest); | 50 runReflectiveTests(EnclosedScopeTest); |
| 51 runReflectiveTests(ErrorResolverTest); |
| 52 runReflectiveTests(HintCodeTest); |
| 53 runReflectiveTests(InheritanceManagerTest); |
| 49 runReflectiveTests(LibraryImportScopeTest); | 54 runReflectiveTests(LibraryImportScopeTest); |
| 50 runReflectiveTests(LibraryScopeTest); | 55 runReflectiveTests(LibraryScopeTest); |
| 56 runReflectiveTests(MemberMapTest); |
| 57 runReflectiveTests(NonHintCodeTest); |
| 51 runReflectiveTests(ScopeTest); | 58 runReflectiveTests(ScopeTest); |
| 52 runReflectiveTests(ElementResolverTest); | 59 runReflectiveTests(SimpleResolverTest); |
| 53 runReflectiveTests(InheritanceManagerTest); | |
| 54 runReflectiveTests(StaticTypeAnalyzerTest); | 60 runReflectiveTests(StaticTypeAnalyzerTest); |
| 55 runReflectiveTests(StaticTypeAnalyzer2Test); | 61 runReflectiveTests(StaticTypeAnalyzer2Test); |
| 56 runReflectiveTests(SubtypeManagerTest); | |
| 57 runReflectiveTests(TypeOverrideManagerTest); | |
| 58 runReflectiveTests(TypeProviderImplTest); | |
| 59 runReflectiveTests(TypeResolverVisitorTest); | |
| 60 runReflectiveTests(CheckedModeCompileTimeErrorCodeTest); | |
| 61 runReflectiveTests(ErrorResolverTest); | |
| 62 runReflectiveTests(HintCodeTest); | |
| 63 runReflectiveTests(MemberMapTest); | |
| 64 runReflectiveTests(NonHintCodeTest); | |
| 65 runReflectiveTests(SimpleResolverTest); | |
| 66 runReflectiveTests(StrictModeTest); | 62 runReflectiveTests(StrictModeTest); |
| 67 runReflectiveTests(TypePropagationTest); | |
| 68 runReflectiveTests(StrongModeDownwardsInferenceTest); | 63 runReflectiveTests(StrongModeDownwardsInferenceTest); |
| 69 runReflectiveTests(StrongModeStaticTypeAnalyzer2Test); | 64 runReflectiveTests(StrongModeStaticTypeAnalyzer2Test); |
| 70 runReflectiveTests(StrongModeTypePropagationTest); | 65 runReflectiveTests(StrongModeTypePropagationTest); |
| 66 runReflectiveTests(SubtypeManagerTest); |
| 67 runReflectiveTests(TypeOverrideManagerTest); |
| 68 runReflectiveTests(TypePropagationTest); |
| 69 runReflectiveTests(TypeProviderImplTest); |
| 70 runReflectiveTests(TypeResolverVisitorTest); |
| 71 } | 71 } |
| 72 | 72 |
| 73 /** | 73 /** |
| 74 * The class `AnalysisContextFactory` defines utility methods used to create ana
lysis contexts | 74 * The class `AnalysisContextFactory` defines utility methods used to create ana
lysis contexts |
| 75 * for testing purposes. | 75 * for testing purposes. |
| 76 */ | 76 */ |
| 77 class AnalysisContextFactory { | 77 class AnalysisContextFactory { |
| 78 static String _DART_MATH = "dart:math"; | 78 static String _DART_MATH = "dart:math"; |
| 79 | 79 |
| 80 static String _DART_INTERCEPTORS = "dart:_interceptors"; | 80 static String _DART_INTERCEPTORS = "dart:_interceptors"; |
| (...skipping 16948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17029 | 17029 |
| 17030 void _resolveTestUnit(String code) { | 17030 void _resolveTestUnit(String code) { |
| 17031 testCode = code; | 17031 testCode = code; |
| 17032 testSource = addSource(testCode); | 17032 testSource = addSource(testCode); |
| 17033 LibraryElement library = resolve2(testSource); | 17033 LibraryElement library = resolve2(testSource); |
| 17034 assertNoErrors(testSource); | 17034 assertNoErrors(testSource); |
| 17035 verify([testSource]); | 17035 verify([testSource]); |
| 17036 testUnit = resolveCompilationUnit(testSource, library); | 17036 testUnit = resolveCompilationUnit(testSource, library); |
| 17037 } | 17037 } |
| 17038 } | 17038 } |
| OLD | NEW |