| OLD | NEW |
| 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.src.summary.resynthesize_ast_test; | 5 library analyzer.test.src.summary.resynthesize_ast_test; |
| 6 | 6 |
| 7 import 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
| 8 import 'package:analyzer/dart/element/element.dart'; | 8 import 'package:analyzer/dart/element/element.dart'; |
| 9 import 'package:analyzer/src/dart/element/element.dart'; | 9 import 'package:analyzer/src/dart/element/element.dart'; |
| 10 import 'package:analyzer/src/generated/engine.dart' | 10 import 'package:analyzer/src/generated/engine.dart' |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 void test_inferCorrectlyOnMultipleVariablesDeclaredTogether() { | 555 void test_inferCorrectlyOnMultipleVariablesDeclaredTogether() { |
| 556 super.test_inferCorrectlyOnMultipleVariablesDeclaredTogether(); | 556 super.test_inferCorrectlyOnMultipleVariablesDeclaredTogether(); |
| 557 } | 557 } |
| 558 | 558 |
| 559 @override | 559 @override |
| 560 @failingTest | 560 @failingTest |
| 561 void test_inferenceInCyclesIsDeterministic() { | 561 void test_inferenceInCyclesIsDeterministic() { |
| 562 super.test_inferenceInCyclesIsDeterministic(); | 562 super.test_inferenceInCyclesIsDeterministic(); |
| 563 } | 563 } |
| 564 | 564 |
| 565 @override | |
| 566 @failingTest | |
| 567 void test_inferTypesOnGenericInstantiations_5() { | |
| 568 super.test_inferTypesOnGenericInstantiations_5(); | |
| 569 } | |
| 570 | |
| 571 @override | |
| 572 @failingTest | |
| 573 void test_inferTypesOnGenericInstantiationsInLibraryCycle() { | |
| 574 super.test_inferTypesOnGenericInstantiationsInLibraryCycle(); | |
| 575 } | |
| 576 | |
| 577 void test_invokeMethod_notGeneric_genericClass() { | 565 void test_invokeMethod_notGeneric_genericClass() { |
| 578 var unit = checkFile(r''' | 566 var unit = checkFile(r''' |
| 579 class C<T> { | 567 class C<T> { |
| 580 T m(int a, {String b, T c}) => null; | 568 T m(int a, {String b, T c}) => null; |
| 581 } | 569 } |
| 582 var v = new C<double>().m(1, b: 'bbb', c: 2.0); | 570 var v = new C<double>().m(1, b: 'bbb', c: 2.0); |
| 583 '''); | 571 '''); |
| 584 expect(unit.topLevelVariables[0].type.toString(), 'double'); | 572 expect(unit.topLevelVariables[0].type.toString(), 'double'); |
| 585 } | 573 } |
| 586 | 574 |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 801 } | 789 } |
| 802 | 790 |
| 803 UnlinkedUnit definingUnit = _getUnlinkedUnit(librarySource); | 791 UnlinkedUnit definingUnit = _getUnlinkedUnit(librarySource); |
| 804 LinkedLibraryBuilder linkedLibrary = | 792 LinkedLibraryBuilder linkedLibrary = |
| 805 prelink(definingUnit, getPart, getImport); | 793 prelink(definingUnit, getPart, getImport); |
| 806 linkedLibrary.dependencies.skip(1).forEach((LinkedDependency d) { | 794 linkedLibrary.dependencies.skip(1).forEach((LinkedDependency d) { |
| 807 _serializeLibrary(resolveRelativeUri(d.uri)); | 795 _serializeLibrary(resolveRelativeUri(d.uri)); |
| 808 }); | 796 }); |
| 809 } | 797 } |
| 810 } | 798 } |
| OLD | NEW |