| 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:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 defineReflectiveTests(LibraryImportScopeTest); | 45 defineReflectiveTests(LibraryImportScopeTest); |
| 46 defineReflectiveTests(LibraryScopeTest); | 46 defineReflectiveTests(LibraryScopeTest); |
| 47 defineReflectiveTests(PrefixedNamespaceTest); | 47 defineReflectiveTests(PrefixedNamespaceTest); |
| 48 defineReflectiveTests(ScopeTest); | 48 defineReflectiveTests(ScopeTest); |
| 49 defineReflectiveTests(StrictModeTest); | 49 defineReflectiveTests(StrictModeTest); |
| 50 defineReflectiveTests(SubtypeManagerTest); | 50 defineReflectiveTests(SubtypeManagerTest); |
| 51 defineReflectiveTests(TypeOverrideManagerTest); | 51 defineReflectiveTests(TypeOverrideManagerTest); |
| 52 defineReflectiveTests(TypePropagationTest); | 52 defineReflectiveTests(TypePropagationTest); |
| 53 defineReflectiveTests(TypeProviderImplTest); | 53 defineReflectiveTests(TypeProviderImplTest); |
| 54 defineReflectiveTests(TypeResolverVisitorTest); | 54 defineReflectiveTests(TypeResolverVisitorTest); |
| 55 defineReflectiveTests(StrictModeTest_Driver); |
| 55 defineReflectiveTests(TypePropagationTest_Driver); | 56 defineReflectiveTests(TypePropagationTest_Driver); |
| 56 }); | 57 }); |
| 57 } | 58 } |
| 58 | 59 |
| 59 @reflectiveTest | 60 @reflectiveTest |
| 60 class AnalysisDeltaTest extends EngineTestCase { | 61 class AnalysisDeltaTest extends EngineTestCase { |
| 61 TestSource source1 = new TestSource('/1.dart'); | 62 TestSource source1 = new TestSource('/1.dart'); |
| 62 TestSource source2 = new TestSource('/2.dart'); | 63 TestSource source2 = new TestSource('/2.dart'); |
| 63 TestSource source3 = new TestSource('/3.dart'); | 64 TestSource source3 = new TestSource('/3.dart'); |
| 64 | 65 |
| (...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 762 int f() { | 763 int f() { |
| 763 num n = 1234; | 764 num n = 1234; |
| 764 return n & 0x0F; | 765 return n & 0x0F; |
| 765 }'''); | 766 }'''); |
| 766 await computeAnalysisResult(source); | 767 await computeAnalysisResult(source); |
| 767 assertErrors(source, [StaticTypeWarningCode.UNDEFINED_OPERATOR]); | 768 assertErrors(source, [StaticTypeWarningCode.UNDEFINED_OPERATOR]); |
| 768 } | 769 } |
| 769 } | 770 } |
| 770 | 771 |
| 771 @reflectiveTest | 772 @reflectiveTest |
| 773 class StrictModeTest_Driver extends StrictModeTest { |
| 774 @override |
| 775 bool get enableNewAnalysisDriver => true; |
| 776 } |
| 777 |
| 778 @reflectiveTest |
| 772 class SubtypeManagerTest { | 779 class SubtypeManagerTest { |
| 773 /** | 780 /** |
| 774 * The inheritance manager being tested. | 781 * The inheritance manager being tested. |
| 775 */ | 782 */ |
| 776 SubtypeManager _subtypeManager; | 783 SubtypeManager _subtypeManager; |
| 777 | 784 |
| 778 /** | 785 /** |
| 779 * The compilation unit element containing all of the types setup in each test
. | 786 * The compilation unit element containing all of the types setup in each test
. |
| 780 */ | 787 */ |
| 781 CompilationUnitElementImpl _definingCompilationUnit; | 788 CompilationUnitElementImpl _definingCompilationUnit; |
| (...skipping 2808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3590 */ | 3597 */ |
| 3591 class _StaleElement extends ElementImpl { | 3598 class _StaleElement extends ElementImpl { |
| 3592 _StaleElement() : super("_StaleElement", -1); | 3599 _StaleElement() : super("_StaleElement", -1); |
| 3593 | 3600 |
| 3594 @override | 3601 @override |
| 3595 get kind => throw "_StaleElement's kind shouldn't be accessed"; | 3602 get kind => throw "_StaleElement's kind shouldn't be accessed"; |
| 3596 | 3603 |
| 3597 @override | 3604 @override |
| 3598 /*=T*/ accept/*<T>*/(_) => throw "_StaleElement shouldn't be visited"; | 3605 /*=T*/ accept/*<T>*/(_) => throw "_StaleElement shouldn't be visited"; |
| 3599 } | 3606 } |
| OLD | NEW |