| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'package:analyzer/dart/ast/ast.dart'; | 5 import 'package:analyzer/dart/ast/ast.dart'; |
| 6 import 'package:analyzer/dart/element/element.dart'; | 6 import 'package:analyzer/dart/element/element.dart'; |
| 7 import 'package:analyzer/error/error.dart'; | 7 import 'package:analyzer/error/error.dart'; |
| 8 import 'package:analyzer/src/generated/parser.dart' as analyzer; | 8 import 'package:analyzer/src/generated/parser.dart' as analyzer; |
| 9 import 'package:front_end/src/fasta/analyzer/ast_builder.dart'; | 9 import 'package:front_end/src/fasta/analyzer/ast_builder.dart'; |
| 10 import 'package:front_end/src/fasta/analyzer/element_store.dart'; | 10 import 'package:front_end/src/fasta/analyzer/element_store.dart'; |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 } | 464 } |
| 465 | 465 |
| 466 /** | 466 /** |
| 467 * Tests of the fasta parser based on [TopLevelParserTestMixin]. | 467 * Tests of the fasta parser based on [TopLevelParserTestMixin]. |
| 468 */ | 468 */ |
| 469 @reflectiveTest | 469 @reflectiveTest |
| 470 class TopLevelParserTest_Fasta extends FastaParserTestCase | 470 class TopLevelParserTest_Fasta extends FastaParserTestCase |
| 471 with TopLevelParserTestMixin { | 471 with TopLevelParserTestMixin { |
| 472 @override | 472 @override |
| 473 @failingTest | 473 @failingTest |
| 474 void test_function_literal_allowed_at_toplevel() { | |
| 475 // TODO(paulberry): Unhandled event: UnnamedFunction | |
| 476 super.test_function_literal_allowed_at_toplevel(); | |
| 477 } | |
| 478 | |
| 479 @override | |
| 480 @failingTest | |
| 481 void | 474 void |
| 482 test_function_literal_allowed_in_ArgumentList_in_ConstructorFieldInitializ
er() { | 475 test_function_literal_allowed_in_ArgumentList_in_ConstructorFieldInitializ
er() { |
| 483 // TODO(paulberry): Unhandled event: UnnamedFunction | 476 // TODO(paulberry): Unhandled event: Method |
| 484 super | 477 super |
| 485 .test_function_literal_allowed_in_ArgumentList_in_ConstructorFieldInitia
lizer(); | 478 .test_function_literal_allowed_in_ArgumentList_in_ConstructorFieldInitia
lizer(); |
| 486 } | 479 } |
| 487 | 480 |
| 488 @override | 481 @override |
| 489 @failingTest | 482 @failingTest |
| 490 void | 483 void |
| 491 test_function_literal_allowed_in_IndexExpression_in_ConstructorFieldInitia
lizer() { | 484 test_function_literal_allowed_in_IndexExpression_in_ConstructorFieldInitia
lizer() { |
| 492 // TODO(paulberry): Unhandled event: UnnamedFunction | 485 // TODO(paulberry): Unhandled event: Method |
| 493 super | 486 super |
| 494 .test_function_literal_allowed_in_IndexExpression_in_ConstructorFieldIni
tializer(); | 487 .test_function_literal_allowed_in_IndexExpression_in_ConstructorFieldIni
tializer(); |
| 495 } | 488 } |
| 496 | 489 |
| 497 @override | 490 @override |
| 498 @failingTest | 491 @failingTest |
| 499 void | 492 void |
| 500 test_function_literal_allowed_in_ListLiteral_in_ConstructorFieldInitialize
r() { | 493 test_function_literal_allowed_in_ListLiteral_in_ConstructorFieldInitialize
r() { |
| 501 // TODO(paulberry): Unhandled event: UnnamedFunction | 494 // TODO(paulberry): Unhandled event: Method |
| 502 super | 495 super |
| 503 .test_function_literal_allowed_in_ListLiteral_in_ConstructorFieldInitial
izer(); | 496 .test_function_literal_allowed_in_ListLiteral_in_ConstructorFieldInitial
izer(); |
| 504 } | 497 } |
| 505 | 498 |
| 506 @override | 499 @override |
| 507 @failingTest | 500 @failingTest |
| 508 void | 501 void |
| 509 test_function_literal_allowed_in_MapLiteral_in_ConstructorFieldInitializer
() { | 502 test_function_literal_allowed_in_MapLiteral_in_ConstructorFieldInitializer
() { |
| 510 // TODO(paulberry): Unhandled event: UnnamedFunction | 503 // TODO(paulberry): Unhandled event: Method |
| 511 super | 504 super |
| 512 .test_function_literal_allowed_in_MapLiteral_in_ConstructorFieldInitiali
zer(); | 505 .test_function_literal_allowed_in_MapLiteral_in_ConstructorFieldInitiali
zer(); |
| 513 } | 506 } |
| 514 | 507 |
| 515 @override | 508 @override |
| 516 @failingTest | 509 @failingTest |
| 517 void | 510 void |
| 518 test_function_literal_allowed_in_ParenthesizedExpression_in_ConstructorFie
ldInitializer() { | 511 test_function_literal_allowed_in_ParenthesizedExpression_in_ConstructorFie
ldInitializer() { |
| 519 // TODO(paulberry): Unhandled event: UnnamedFunction | 512 // TODO(paulberry): Unhandled event: Method |
| 520 super | 513 super |
| 521 .test_function_literal_allowed_in_ParenthesizedExpression_in_Constructor
FieldInitializer(); | 514 .test_function_literal_allowed_in_ParenthesizedExpression_in_Constructor
FieldInitializer(); |
| 522 } | 515 } |
| 523 | 516 |
| 524 @override | 517 @override |
| 525 @failingTest | 518 @failingTest |
| 526 void | 519 void |
| 527 test_function_literal_allowed_in_StringInterpolation_in_ConstructorFieldIn
itializer() { | 520 test_function_literal_allowed_in_StringInterpolation_in_ConstructorFieldIn
itializer() { |
| 528 // TODO(paulberry): Unhandled event: UnnamedFunction | 521 // TODO(paulberry): Unhandled event: Method |
| 529 super | 522 super |
| 530 .test_function_literal_allowed_in_StringInterpolation_in_ConstructorFiel
dInitializer(); | 523 .test_function_literal_allowed_in_StringInterpolation_in_ConstructorFiel
dInitializer(); |
| 531 } | 524 } |
| 532 | 525 |
| 533 @override | 526 @override |
| 534 @failingTest | 527 @failingTest |
| 535 void test_parseClassDeclaration_abstract() { | 528 void test_parseClassDeclaration_abstract() { |
| 536 // TODO(paulberry): Implement AstBuilder.handleModifier | 529 // TODO(paulberry): Implement AstBuilder.handleModifier |
| 537 super.test_parseClassDeclaration_abstract(); | 530 super.test_parseClassDeclaration_abstract(); |
| 538 } | 531 } |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 | 625 |
| 633 @override | 626 @override |
| 634 @failingTest | 627 @failingTest |
| 635 void test_parseCompilationUnitMember_classTypeAlias() { | 628 void test_parseCompilationUnitMember_classTypeAlias() { |
| 636 // TODO(paulberry): Implement AstBuilder.handleModifier | 629 // TODO(paulberry): Implement AstBuilder.handleModifier |
| 637 super.test_parseCompilationUnitMember_classTypeAlias(); | 630 super.test_parseCompilationUnitMember_classTypeAlias(); |
| 638 } | 631 } |
| 639 | 632 |
| 640 @override | 633 @override |
| 641 @failingTest | 634 @failingTest |
| 642 void test_parseCompilationUnitMember_constVariable() { | |
| 643 // TODO(paulberry): Unhandled event: FieldInitializer | |
| 644 super.test_parseCompilationUnitMember_constVariable(); | |
| 645 } | |
| 646 | |
| 647 @override | |
| 648 @failingTest | |
| 649 void test_parseCompilationUnitMember_finalVariable() { | |
| 650 // TODO(paulberry): Unhandled event: FieldInitializer | |
| 651 super.test_parseCompilationUnitMember_finalVariable(); | |
| 652 } | |
| 653 | |
| 654 @override | |
| 655 @failingTest | |
| 656 void test_parseCompilationUnitMember_function_external_noType() { | 635 void test_parseCompilationUnitMember_function_external_noType() { |
| 657 // TODO(paulberry): Implement AstBuilder.handleModifier | 636 // TODO(paulberry): Implement AstBuilder.handleModifier |
| 658 super.test_parseCompilationUnitMember_function_external_noType(); | 637 super.test_parseCompilationUnitMember_function_external_noType(); |
| 659 } | 638 } |
| 660 | 639 |
| 661 @override | 640 @override |
| 662 @failingTest | 641 @failingTest |
| 663 void test_parseCompilationUnitMember_function_external_type() { | 642 void test_parseCompilationUnitMember_function_external_type() { |
| 664 // TODO(paulberry): Implement AstBuilder.handleModifier | 643 // TODO(paulberry): Implement AstBuilder.handleModifier |
| 665 super.test_parseCompilationUnitMember_function_external_type(); | 644 super.test_parseCompilationUnitMember_function_external_type(); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 | 747 |
| 769 @override | 748 @override |
| 770 @failingTest | 749 @failingTest |
| 771 void test_parseCompilationUnitMember_typedef() { | 750 void test_parseCompilationUnitMember_typedef() { |
| 772 // TODO(paulberry): Unhandled event: FunctionTypeAlias | 751 // TODO(paulberry): Unhandled event: FunctionTypeAlias |
| 773 super.test_parseCompilationUnitMember_typedef(); | 752 super.test_parseCompilationUnitMember_typedef(); |
| 774 } | 753 } |
| 775 | 754 |
| 776 @override | 755 @override |
| 777 @failingTest | 756 @failingTest |
| 778 void test_parseCompilationUnitMember_variable() { | |
| 779 // TODO(paulberry): Unhandled event: FieldInitializer | |
| 780 super.test_parseCompilationUnitMember_variable(); | |
| 781 } | |
| 782 | |
| 783 @override | |
| 784 @failingTest | |
| 785 void test_parseCompilationUnitMember_variableGet() { | |
| 786 // TODO(paulberry): Unhandled event: FieldInitializer | |
| 787 super.test_parseCompilationUnitMember_variableGet(); | |
| 788 } | |
| 789 | |
| 790 @override | |
| 791 @failingTest | |
| 792 void test_parseCompilationUnitMember_variableSet() { | |
| 793 // TODO(paulberry): Unhandled event: FieldInitializer | |
| 794 super.test_parseCompilationUnitMember_variableSet(); | |
| 795 } | |
| 796 | |
| 797 @override | |
| 798 @failingTest | |
| 799 void test_parseDirectives_complete() { | 757 void test_parseDirectives_complete() { |
| 800 // TODO(paulberry,ahe): Fasta doesn't support script tags yet. | 758 // TODO(paulberry,ahe): Fasta doesn't support script tags yet. |
| 801 super.test_parseDirectives_complete(); | 759 super.test_parseDirectives_complete(); |
| 802 } | 760 } |
| 803 | 761 |
| 804 @override | 762 @override |
| 805 @failingTest | 763 @failingTest |
| 806 void test_parseDirectives_empty() { | 764 void test_parseDirectives_empty() { |
| 807 // TODO(paulberry): No objects placed on stack | 765 // TODO(paulberry): No objects placed on stack |
| 808 super.test_parseDirectives_empty(); | 766 super.test_parseDirectives_empty(); |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1037 void test_parseTypeAlias_genericFunction_typeParameters_voidReturnType() { | 995 void test_parseTypeAlias_genericFunction_typeParameters_voidReturnType() { |
| 1038 super.test_parseTypeAlias_genericFunction_typeParameters_voidReturnType(); | 996 super.test_parseTypeAlias_genericFunction_typeParameters_voidReturnType(); |
| 1039 } | 997 } |
| 1040 | 998 |
| 1041 @override | 999 @override |
| 1042 @failingTest | 1000 @failingTest |
| 1043 void test_parseTypeAlias_genericFunction_voidReturnType() { | 1001 void test_parseTypeAlias_genericFunction_voidReturnType() { |
| 1044 super.test_parseTypeAlias_genericFunction_voidReturnType(); | 1002 super.test_parseTypeAlias_genericFunction_voidReturnType(); |
| 1045 } | 1003 } |
| 1046 } | 1004 } |
| OLD | NEW |