| 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 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 void test_inferCorrectlyOnMultipleVariablesDeclaredTogether() { | 510 void test_inferCorrectlyOnMultipleVariablesDeclaredTogether() { |
| 511 super.test_inferCorrectlyOnMultipleVariablesDeclaredTogether(); | 511 super.test_inferCorrectlyOnMultipleVariablesDeclaredTogether(); |
| 512 } | 512 } |
| 513 | 513 |
| 514 @override | 514 @override |
| 515 @failingTest | 515 @failingTest |
| 516 void test_inferenceInCyclesIsDeterministic() { | 516 void test_inferenceInCyclesIsDeterministic() { |
| 517 super.test_inferenceInCyclesIsDeterministic(); | 517 super.test_inferenceInCyclesIsDeterministic(); |
| 518 } | 518 } |
| 519 | 519 |
| 520 @override | |
| 521 @failingTest | |
| 522 void test_instantiateToBounds_generic2_hasBound_definedAfter() { | |
| 523 super.test_instantiateToBounds_generic2_hasBound_definedAfter(); | |
| 524 } | |
| 525 | |
| 526 @override | |
| 527 @failingTest | |
| 528 void test_instantiateToBounds_generic2_hasBound_definedBefore() { | |
| 529 super.test_instantiateToBounds_generic2_hasBound_definedBefore(); | |
| 530 } | |
| 531 | |
| 532 @override | |
| 533 @failingTest | |
| 534 void test_instantiateToBounds_generic2_noBound() { | |
| 535 super.test_instantiateToBounds_generic2_noBound(); | |
| 536 } | |
| 537 | |
| 538 @override | |
| 539 @failingTest | |
| 540 void test_instantiateToBounds_generic_hasBound_definedAfter() { | |
| 541 super.test_instantiateToBounds_generic_hasBound_definedAfter(); | |
| 542 } | |
| 543 | |
| 544 @override | |
| 545 @failingTest | |
| 546 void test_instantiateToBounds_generic_hasBound_definedBefore() { | |
| 547 super.test_instantiateToBounds_generic_hasBound_definedBefore(); | |
| 548 } | |
| 549 | |
| 550 @override | |
| 551 @failingTest | |
| 552 void test_instantiateToBounds_notGeneric() { | |
| 553 super.test_instantiateToBounds_notGeneric(); | |
| 554 } | |
| 555 | |
| 556 void test_invokeMethod_notGeneric_genericClass() { | 520 void test_invokeMethod_notGeneric_genericClass() { |
| 557 var unit = checkFile(r''' | 521 var unit = checkFile(r''' |
| 558 class C<T> { | 522 class C<T> { |
| 559 T m(int a, {String b, T c}) => null; | 523 T m(int a, {String b, T c}) => null; |
| 560 } | 524 } |
| 561 var v = new C<double>().m(1, b: 'bbb', c: 2.0); | 525 var v = new C<double>().m(1, b: 'bbb', c: 2.0); |
| 562 '''); | 526 '''); |
| 563 expect(unit.topLevelVariables[0].type.toString(), 'double'); | 527 expect(unit.topLevelVariables[0].type.toString(), 'double'); |
| 564 } | 528 } |
| 565 | 529 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 727 } | 691 } |
| 728 | 692 |
| 729 UnlinkedUnit definingUnit = _getUnlinkedUnit(librarySource); | 693 UnlinkedUnit definingUnit = _getUnlinkedUnit(librarySource); |
| 730 LinkedLibraryBuilder linkedLibrary = | 694 LinkedLibraryBuilder linkedLibrary = |
| 731 prelink(definingUnit, getPart, getImport); | 695 prelink(definingUnit, getPart, getImport); |
| 732 linkedLibrary.dependencies.skip(1).forEach((LinkedDependency d) { | 696 linkedLibrary.dependencies.skip(1).forEach((LinkedDependency d) { |
| 733 _serializeLibrary(resolveRelativeUri(d.uri)); | 697 _serializeLibrary(resolveRelativeUri(d.uri)); |
| 734 }); | 698 }); |
| 735 } | 699 } |
| 736 } | 700 } |
| OLD | NEW |