| 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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 void test_inferCorrectlyOnMultipleVariablesDeclaredTogether() { | 504 void test_inferCorrectlyOnMultipleVariablesDeclaredTogether() { |
| 505 super.test_inferCorrectlyOnMultipleVariablesDeclaredTogether(); | 505 super.test_inferCorrectlyOnMultipleVariablesDeclaredTogether(); |
| 506 } | 506 } |
| 507 | 507 |
| 508 @override | 508 @override |
| 509 @failingTest | 509 @failingTest |
| 510 void test_inferenceInCyclesIsDeterministic() { | 510 void test_inferenceInCyclesIsDeterministic() { |
| 511 super.test_inferenceInCyclesIsDeterministic(); | 511 super.test_inferenceInCyclesIsDeterministic(); |
| 512 } | 512 } |
| 513 | 513 |
| 514 @override |
| 515 @failingTest |
| 516 void test_inferredType_opAssignToProperty_prefixedIdentifier() { |
| 517 super.test_inferredType_opAssignToProperty_prefixedIdentifier(); |
| 518 } |
| 519 |
| 520 @override |
| 521 @failingTest |
| 522 void test_inferredType_opAssignToProperty_prefixedIdentifier_viaInterface() { |
| 523 super |
| 524 .test_inferredType_opAssignToProperty_prefixedIdentifier_viaInterface(); |
| 525 } |
| 526 |
| 514 void test_invokeMethod_notGeneric_genericClass() { | 527 void test_invokeMethod_notGeneric_genericClass() { |
| 515 var unit = checkFile(r''' | 528 var unit = checkFile(r''' |
| 516 class C<T> { | 529 class C<T> { |
| 517 T m(int a, {String b, T c}) => null; | 530 T m(int a, {String b, T c}) => null; |
| 518 } | 531 } |
| 519 var v = new C<double>().m(1, b: 'bbb', c: 2.0); | 532 var v = new C<double>().m(1, b: 'bbb', c: 2.0); |
| 520 '''); | 533 '''); |
| 521 expect(unit.topLevelVariables[0].type.toString(), 'double'); | 534 expect(unit.topLevelVariables[0].type.toString(), 'double'); |
| 522 } | 535 } |
| 523 | 536 |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 } | 692 } |
| 680 | 693 |
| 681 UnlinkedUnit definingUnit = _getUnlinkedUnit(librarySource); | 694 UnlinkedUnit definingUnit = _getUnlinkedUnit(librarySource); |
| 682 LinkedLibraryBuilder linkedLibrary = | 695 LinkedLibraryBuilder linkedLibrary = |
| 683 prelink(definingUnit, getPart, getImport); | 696 prelink(definingUnit, getPart, getImport); |
| 684 linkedLibrary.dependencies.skip(1).forEach((LinkedDependency d) { | 697 linkedLibrary.dependencies.skip(1).forEach((LinkedDependency d) { |
| 685 _serializeLibrary(resolveRelativeUri(d.uri)); | 698 _serializeLibrary(resolveRelativeUri(d.uri)); |
| 686 }); | 699 }); |
| 687 } | 700 } |
| 688 } | 701 } |
| OLD | NEW |