| 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.non_error_resolver_test; | 5 library analyzer.test.generated.non_error_resolver_test; |
| 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'; |
| (...skipping 3613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3624 } | 3624 } |
| 3625 class B extends Object with A {}'''); | 3625 class B extends Object with A {}'''); |
| 3626 await computeAnalysisResult(source); | 3626 await computeAnalysisResult(source); |
| 3627 assertNoErrors(source); | 3627 assertNoErrors(source); |
| 3628 verify([source]); | 3628 verify([source]); |
| 3629 } | 3629 } |
| 3630 | 3630 |
| 3631 test_mixinInheritsFromNotObject_classDeclaration_extends() async { | 3631 test_mixinInheritsFromNotObject_classDeclaration_extends() async { |
| 3632 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 3632 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
| 3633 options.enableSuperMixins = true; | 3633 options.enableSuperMixins = true; |
| 3634 resetWithOptions(options); | 3634 resetWith(options: options); |
| 3635 Source source = addSource(r''' | 3635 Source source = addSource(r''' |
| 3636 class A {} | 3636 class A {} |
| 3637 class B extends A {} | 3637 class B extends A {} |
| 3638 class C extends Object with B {}'''); | 3638 class C extends Object with B {}'''); |
| 3639 await computeAnalysisResult(source); | 3639 await computeAnalysisResult(source); |
| 3640 assertNoErrors(source); | 3640 assertNoErrors(source); |
| 3641 verify([source]); | 3641 verify([source]); |
| 3642 } | 3642 } |
| 3643 | 3643 |
| 3644 test_mixinInheritsFromNotObject_classDeclaration_mixTypeAlias() async { | 3644 test_mixinInheritsFromNotObject_classDeclaration_mixTypeAlias() async { |
| 3645 Source source = addSource(r''' | 3645 Source source = addSource(r''' |
| 3646 class A {} | 3646 class A {} |
| 3647 class B = Object with A; | 3647 class B = Object with A; |
| 3648 class C extends Object with B {}'''); | 3648 class C extends Object with B {}'''); |
| 3649 await computeAnalysisResult(source); | 3649 await computeAnalysisResult(source); |
| 3650 assertNoErrors(source); | 3650 assertNoErrors(source); |
| 3651 verify([source]); | 3651 verify([source]); |
| 3652 } | 3652 } |
| 3653 | 3653 |
| 3654 test_mixinInheritsFromNotObject_classDeclaration_with() async { | 3654 test_mixinInheritsFromNotObject_classDeclaration_with() async { |
| 3655 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 3655 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
| 3656 options.enableSuperMixins = true; | 3656 options.enableSuperMixins = true; |
| 3657 resetWithOptions(options); | 3657 resetWith(options: options); |
| 3658 Source source = addSource(r''' | 3658 Source source = addSource(r''' |
| 3659 class A {} | 3659 class A {} |
| 3660 class B extends Object with A {} | 3660 class B extends Object with A {} |
| 3661 class C extends Object with B {}'''); | 3661 class C extends Object with B {}'''); |
| 3662 await computeAnalysisResult(source); | 3662 await computeAnalysisResult(source); |
| 3663 assertNoErrors(source); | 3663 assertNoErrors(source); |
| 3664 verify([source]); | 3664 verify([source]); |
| 3665 } | 3665 } |
| 3666 | 3666 |
| 3667 test_mixinInheritsFromNotObject_typeAlias_extends() async { | 3667 test_mixinInheritsFromNotObject_typeAlias_extends() async { |
| 3668 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 3668 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
| 3669 options.enableSuperMixins = true; | 3669 options.enableSuperMixins = true; |
| 3670 resetWithOptions(options); | 3670 resetWith(options: options); |
| 3671 Source source = addSource(r''' | 3671 Source source = addSource(r''' |
| 3672 class A {} | 3672 class A {} |
| 3673 class B extends A {} | 3673 class B extends A {} |
| 3674 class C = Object with B;'''); | 3674 class C = Object with B;'''); |
| 3675 await computeAnalysisResult(source); | 3675 await computeAnalysisResult(source); |
| 3676 assertNoErrors(source); | 3676 assertNoErrors(source); |
| 3677 verify([source]); | 3677 verify([source]); |
| 3678 } | 3678 } |
| 3679 | 3679 |
| 3680 test_mixinInheritsFromNotObject_typeAlias_with() async { | 3680 test_mixinInheritsFromNotObject_typeAlias_with() async { |
| 3681 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 3681 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
| 3682 options.enableSuperMixins = true; | 3682 options.enableSuperMixins = true; |
| 3683 resetWithOptions(options); | 3683 resetWith(options: options); |
| 3684 Source source = addSource(r''' | 3684 Source source = addSource(r''' |
| 3685 class A {} | 3685 class A {} |
| 3686 class B extends Object with A {} | 3686 class B extends Object with A {} |
| 3687 class C = Object with B;'''); | 3687 class C = Object with B;'''); |
| 3688 await computeAnalysisResult(source); | 3688 await computeAnalysisResult(source); |
| 3689 assertNoErrors(source); | 3689 assertNoErrors(source); |
| 3690 verify([source]); | 3690 verify([source]); |
| 3691 } | 3691 } |
| 3692 | 3692 |
| 3693 test_mixinInheritsFromNotObject_typedef_mixTypeAlias() async { | 3693 test_mixinInheritsFromNotObject_typedef_mixTypeAlias() async { |
| 3694 Source source = addSource(r''' | 3694 Source source = addSource(r''' |
| 3695 class A {} | 3695 class A {} |
| 3696 class B = Object with A; | 3696 class B = Object with A; |
| 3697 class C = Object with B;'''); | 3697 class C = Object with B;'''); |
| 3698 await computeAnalysisResult(source); | 3698 await computeAnalysisResult(source); |
| 3699 assertNoErrors(source); | 3699 assertNoErrors(source); |
| 3700 verify([source]); | 3700 verify([source]); |
| 3701 } | 3701 } |
| 3702 | 3702 |
| 3703 test_mixinReferencesSuper() async { | 3703 test_mixinReferencesSuper() async { |
| 3704 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 3704 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
| 3705 options.enableSuperMixins = true; | 3705 options.enableSuperMixins = true; |
| 3706 resetWithOptions(options); | 3706 resetWith(options: options); |
| 3707 Source source = addSource(r''' | 3707 Source source = addSource(r''' |
| 3708 class A { | 3708 class A { |
| 3709 toString() => super.toString(); | 3709 toString() => super.toString(); |
| 3710 } | 3710 } |
| 3711 class B extends Object with A {}'''); | 3711 class B extends Object with A {}'''); |
| 3712 await computeAnalysisResult(source); | 3712 await computeAnalysisResult(source); |
| 3713 assertNoErrors(source); | 3713 assertNoErrors(source); |
| 3714 verify([source]); | 3714 verify([source]); |
| 3715 } | 3715 } |
| 3716 | 3716 |
| (...skipping 2531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6248 } | 6248 } |
| 6249 | 6249 |
| 6250 Future<Null> _check_wrongNumberOfParametersForOperator1(String name) async { | 6250 Future<Null> _check_wrongNumberOfParametersForOperator1(String name) async { |
| 6251 await _check_wrongNumberOfParametersForOperator(name, "a"); | 6251 await _check_wrongNumberOfParametersForOperator(name, "a"); |
| 6252 } | 6252 } |
| 6253 | 6253 |
| 6254 Future<CompilationUnit> _getResolvedLibraryUnit(Source source) async { | 6254 Future<CompilationUnit> _getResolvedLibraryUnit(Source source) async { |
| 6255 return analysisContext.getResolvedCompilationUnit2(source, source); | 6255 return analysisContext.getResolvedCompilationUnit2(source, source); |
| 6256 } | 6256 } |
| 6257 } | 6257 } |
| OLD | NEW |