| 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:analyzer/src/generated/utilities_dart.dart'; |
| 9 import 'package:front_end/src/fasta/analyzer/ast_builder.dart'; | 10 import 'package:front_end/src/fasta/analyzer/ast_builder.dart'; |
| 10 import 'package:front_end/src/fasta/analyzer/element_store.dart'; | 11 import 'package:front_end/src/fasta/analyzer/element_store.dart'; |
| 11 import 'package:front_end/src/fasta/builder/scope.dart'; | 12 import 'package:front_end/src/fasta/builder/scope.dart'; |
| 12 import 'package:front_end/src/fasta/kernel/kernel_builder.dart'; | 13 import 'package:front_end/src/fasta/kernel/kernel_builder.dart'; |
| 13 import 'package:front_end/src/fasta/kernel/kernel_library_builder.dart'; | 14 import 'package:front_end/src/fasta/kernel/kernel_library_builder.dart'; |
| 14 import 'package:front_end/src/fasta/parser/parser.dart' as fasta; | 15 import 'package:front_end/src/fasta/parser/parser.dart' as fasta; |
| 15 import 'package:front_end/src/fasta/scanner/string_scanner.dart'; | 16 import 'package:front_end/src/fasta/scanner/string_scanner.dart'; |
| 16 import 'package:front_end/src/fasta/scanner/token.dart' as fasta; | 17 import 'package:front_end/src/fasta/scanner/token.dart' as fasta; |
| 17 import 'package:test/test.dart'; | 18 import 'package:test/test.dart'; |
| 18 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 19 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 19 | 20 |
| 20 import 'parser_test.dart'; | 21 import 'parser_test.dart'; |
| 21 | 22 |
| 22 main() { | 23 main() { |
| 23 defineReflectiveSuite(() { | 24 defineReflectiveSuite(() { |
| 24 defineReflectiveTests(ComplexParserTest_Fasta); | 25 defineReflectiveTests(ComplexParserTest_Fasta); |
| 26 defineReflectiveTests(FormalParameterParserTest_Fasta); |
| 25 defineReflectiveTests(TopLevelParserTest_Fasta); | 27 defineReflectiveTests(TopLevelParserTest_Fasta); |
| 26 }); | 28 }); |
| 27 } | 29 } |
| 28 | 30 |
| 29 /** | 31 /** |
| 30 * Type of the "parse..." methods defined in the Fasta parser. | 32 * Type of the "parse..." methods defined in the Fasta parser. |
| 31 */ | 33 */ |
| 32 typedef fasta.Token ParseFunction(fasta.Token token); | 34 typedef fasta.Token ParseFunction(fasta.Token token); |
| 33 | 35 |
| 34 /** | 36 /** |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 // TODO(paulberry,ahe): URIs in "part of" declarations are not supported | 280 // TODO(paulberry,ahe): URIs in "part of" declarations are not supported |
| 279 // by Fasta. | 281 // by Fasta. |
| 280 throw new UnimplementedError(); | 282 throw new UnimplementedError(); |
| 281 } | 283 } |
| 282 } | 284 } |
| 283 | 285 |
| 284 @override | 286 @override |
| 285 analyzer.Parser get parser => _parserProxy; | 287 analyzer.Parser get parser => _parserProxy; |
| 286 | 288 |
| 287 @override | 289 @override |
| 290 void assertErrorsWithCodes(List<ErrorCode> expectedErrorCodes) { |
| 291 // TODO(scheglov): implement assertErrorsWithCodes |
| 292 fail('Not implemented'); |
| 293 } |
| 294 |
| 295 @override |
| 288 void assertNoErrors() { | 296 void assertNoErrors() { |
| 289 // TODO(paulberry): implement assertNoErrors | 297 // TODO(paulberry): implement assertNoErrors |
| 290 } | 298 } |
| 291 | 299 |
| 292 @override | 300 @override |
| 293 void createParser(String content) { | 301 void createParser(String content) { |
| 294 var scanner = new StringScanner(content); | 302 var scanner = new StringScanner(content); |
| 295 _parserProxy = new ParserProxy(scanner.tokenize()); | 303 _parserProxy = new ParserProxy(scanner.tokenize()); |
| 296 } | 304 } |
| 297 | 305 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 316 } | 324 } |
| 317 | 325 |
| 318 @override | 326 @override |
| 319 Expression parseExpression(String source, | 327 Expression parseExpression(String source, |
| 320 [List<ErrorCode> errorCodes = const <ErrorCode>[]]) { | 328 [List<ErrorCode> errorCodes = const <ErrorCode>[]]) { |
| 321 return _runParser(source, (parser) => parser.parseExpression, errorCodes) | 329 return _runParser(source, (parser) => parser.parseExpression, errorCodes) |
| 322 as Expression; | 330 as Expression; |
| 323 } | 331 } |
| 324 | 332 |
| 325 @override | 333 @override |
| 334 FormalParameter parseFormalParameter(String code, ParameterKind kind, |
| 335 {List<ErrorCode> errorCodes: const <ErrorCode>[]}) { |
| 336 fasta.FormalParameterType type; |
| 337 if (kind == ParameterKind.REQUIRED) { |
| 338 type = fasta.FormalParameterType.REQUIRED; |
| 339 } else if (kind == ParameterKind.POSITIONAL) { |
| 340 type = fasta.FormalParameterType.POSITIONAL; |
| 341 } else if (kind == ParameterKind.NAMED) { |
| 342 type = fasta.FormalParameterType.NAMED; |
| 343 } else { |
| 344 fail('$kind'); |
| 345 } |
| 346 return _runParser( |
| 347 code, |
| 348 (parser) => (token) => parser.parseFormalParameter(token, type), |
| 349 errorCodes) as FormalParameter; |
| 350 } |
| 351 |
| 352 @override |
| 353 FormalParameterList parseFormalParameterList(String code, |
| 354 {bool inFunctionType: false, |
| 355 List<ErrorCode> errorCodes: const <ErrorCode>[]}) { |
| 356 return _runParser( |
| 357 code, (parser) => parser.parseFormalParameters, errorCodes) |
| 358 as FormalParameterList; |
| 359 } |
| 360 |
| 361 @override |
| 326 CompilationUnitMember parseFullCompilationUnitMember() { | 362 CompilationUnitMember parseFullCompilationUnitMember() { |
| 327 return _parserProxy._run((parser) => parser.parseTopLevelDeclaration) | 363 return _parserProxy._run((parser) => parser.parseTopLevelDeclaration) |
| 328 as CompilationUnitMember; | 364 as CompilationUnitMember; |
| 329 } | 365 } |
| 330 | 366 |
| 331 @override | 367 @override |
| 332 Directive parseFullDirective() { | 368 Directive parseFullDirective() { |
| 333 return _parserProxy._run((parser) => parser.parseTopLevelDeclaration) | 369 return _parserProxy._run((parser) => parser.parseTopLevelDeclaration) |
| 334 as Directive; | 370 as Directive; |
| 335 } | 371 } |
| 336 | 372 |
| 337 @override | 373 @override |
| 374 NormalFormalParameter parseNormalFormalParameter(String code, |
| 375 {bool inFunctionType: false, |
| 376 List<ErrorCode> errorCodes: const <ErrorCode>[]}) { |
| 377 FormalParameterList list = parseFormalParameterList('($code)', |
| 378 inFunctionType: inFunctionType, errorCodes: errorCodes); |
| 379 return list.parameters.single; |
| 380 } |
| 381 |
| 382 @override |
| 338 Statement parseStatement(String source, | 383 Statement parseStatement(String source, |
| 339 [List<ErrorCode> errorCodes = const <ErrorCode>[], | 384 [List<ErrorCode> errorCodes = const <ErrorCode>[], |
| 340 bool enableLazyAssignmentOperators]) { | 385 bool enableLazyAssignmentOperators]) { |
| 341 return _runParser(source, (parser) => parser.parseStatement, errorCodes) | 386 return _runParser(source, (parser) => parser.parseStatement, errorCodes) |
| 342 as Statement; | 387 as Statement; |
| 343 } | 388 } |
| 344 | 389 |
| 345 Object _runParser( | 390 Object _runParser( |
| 346 String source, ParseFunction getParseFunction(fasta.Parser parser), | 391 String source, ParseFunction getParseFunction(fasta.Parser parser), |
| 347 [List<ErrorCode> errorCodes = const <ErrorCode>[]]) { | 392 [List<ErrorCode> errorCodes = const <ErrorCode>[]]) { |
| 348 if (errorCodes.isNotEmpty) { | 393 if (errorCodes.isNotEmpty) { |
| 349 // TODO(paulberry): Check that the parser generates the proper errors. | 394 // TODO(paulberry): Check that the parser generates the proper errors. |
| 350 throw new UnimplementedError(); | 395 throw new UnimplementedError(); |
| 351 } | 396 } |
| 352 createParser(source); | 397 createParser(source); |
| 353 return _parserProxy._run(getParseFunction); | 398 return _parserProxy._run(getParseFunction); |
| 354 } | 399 } |
| 355 } | 400 } |
| 356 | 401 |
| 357 /** | 402 /** |
| 403 * Tests of the fasta parser based on [FormalParameterParserTestMixin]. |
| 404 */ |
| 405 @reflectiveTest |
| 406 class FormalParameterParserTest_Fasta extends FastaParserTestCase |
| 407 with FormalParameterParserTestMixin { |
| 408 @override |
| 409 @failingTest |
| 410 void test_parseFormalParameter_covariant_final_named() { |
| 411 // TODO(scheglov): Unhandled event: ValuedFormalParameter |
| 412 super.test_parseFormalParameter_covariant_final_named(); |
| 413 } |
| 414 |
| 415 @override |
| 416 @failingTest |
| 417 void test_parseFormalParameter_covariant_final_normal() { |
| 418 // TODO(scheglov): parse final |
| 419 super.test_parseFormalParameter_covariant_final_normal(); |
| 420 } |
| 421 |
| 422 @override |
| 423 @failingTest |
| 424 void test_parseFormalParameter_covariant_final_positional() { |
| 425 // TODO(scheglov): Unhandled event: ValuedFormalParameter |
| 426 super.test_parseFormalParameter_covariant_final_positional(); |
| 427 } |
| 428 |
| 429 @override |
| 430 @failingTest |
| 431 void test_parseFormalParameter_covariant_final_type_named() { |
| 432 // TODO(scheglov): Unhandled event: ValuedFormalParameter |
| 433 super.test_parseFormalParameter_covariant_final_type_named(); |
| 434 } |
| 435 |
| 436 @override |
| 437 @failingTest |
| 438 void test_parseFormalParameter_covariant_final_type_normal() { |
| 439 // TODO(scheglov): parse final |
| 440 super.test_parseFormalParameter_covariant_final_type_normal(); |
| 441 } |
| 442 |
| 443 @override |
| 444 @failingTest |
| 445 void test_parseFormalParameter_covariant_final_type_positional() { |
| 446 // TODO(scheglov): Unhandled event: ValuedFormalParameter |
| 447 super.test_parseFormalParameter_covariant_final_type_positional(); |
| 448 } |
| 449 |
| 450 @override |
| 451 @failingTest |
| 452 void test_parseFormalParameter_covariant_type_function() { |
| 453 // TODO(scheglov): Unhandled event: FunctionTypedFormalParameter |
| 454 super.test_parseFormalParameter_covariant_type_function(); |
| 455 } |
| 456 |
| 457 @override |
| 458 @failingTest |
| 459 void test_parseFormalParameter_covariant_type_named() { |
| 460 // TODO(scheglov): Unhandled event: ValuedFormalParameter |
| 461 super.test_parseFormalParameter_covariant_type_named(); |
| 462 } |
| 463 |
| 464 @override |
| 465 @failingTest |
| 466 void test_parseFormalParameter_covariant_type_normal() { |
| 467 // TODO(scheglov): Unhandled event: TypeArguments |
| 468 super.test_parseFormalParameter_covariant_type_normal(); |
| 469 } |
| 470 |
| 471 @override |
| 472 @failingTest |
| 473 void test_parseFormalParameter_covariant_type_positional() { |
| 474 // TODO(scheglov): Unhandled event: ValuedFormalParameter |
| 475 super.test_parseFormalParameter_covariant_type_positional(); |
| 476 } |
| 477 |
| 478 @override |
| 479 @failingTest |
| 480 void test_parseFormalParameter_covariant_var_named() { |
| 481 // TODO(scheglov): Unhandled event: ValuedFormalParameter |
| 482 super.test_parseFormalParameter_covariant_var_named(); |
| 483 } |
| 484 |
| 485 @override |
| 486 @failingTest |
| 487 void test_parseFormalParameter_covariant_var_normal() { |
| 488 // TODO(scheglov): parse var |
| 489 super.test_parseFormalParameter_covariant_var_normal(); |
| 490 } |
| 491 |
| 492 @override |
| 493 @failingTest |
| 494 void test_parseFormalParameter_covariant_var_positional() { |
| 495 // TODO(scheglov): Unhandled event: ValuedFormalParameter |
| 496 super.test_parseFormalParameter_covariant_var_positional(); |
| 497 } |
| 498 |
| 499 @override |
| 500 @failingTest |
| 501 void test_parseFormalParameter_final_named() { |
| 502 // TODO(scheglov): Unhandled event: ValuedFormalParameter |
| 503 super.test_parseFormalParameter_final_named(); |
| 504 } |
| 505 |
| 506 @override |
| 507 @failingTest |
| 508 void test_parseFormalParameter_final_normal() { |
| 509 // TODO(scheglov): parse final |
| 510 super.test_parseFormalParameter_final_normal(); |
| 511 } |
| 512 |
| 513 @override |
| 514 @failingTest |
| 515 void test_parseFormalParameter_final_positional() { |
| 516 // TODO(scheglov): Unhandled event: ValuedFormalParameter |
| 517 super.test_parseFormalParameter_final_positional(); |
| 518 } |
| 519 |
| 520 @override |
| 521 @failingTest |
| 522 void test_parseFormalParameter_final_type_named() { |
| 523 // TODO(scheglov): Unhandled event: ValuedFormalParameter |
| 524 super.test_parseFormalParameter_final_type_named(); |
| 525 } |
| 526 |
| 527 @override |
| 528 @failingTest |
| 529 void test_parseFormalParameter_final_type_normal() { |
| 530 // TODO(scheglov): parse final |
| 531 super.test_parseFormalParameter_final_type_normal(); |
| 532 } |
| 533 |
| 534 @override |
| 535 @failingTest |
| 536 void test_parseFormalParameter_final_type_positional() { |
| 537 // TODO(scheglov): Unhandled event: ValuedFormalParameter |
| 538 super.test_parseFormalParameter_final_type_positional(); |
| 539 } |
| 540 |
| 541 @override |
| 542 @failingTest |
| 543 void test_parseFormalParameter_type_function() { |
| 544 // TODO(scheglov): Unhandled event: FunctionTypedFormalParameter |
| 545 super.test_parseFormalParameter_type_function(); |
| 546 } |
| 547 |
| 548 @override |
| 549 @failingTest |
| 550 void test_parseFormalParameter_type_named() { |
| 551 // TODO(scheglov): Unhandled event: ValuedFormalParameter |
| 552 super.test_parseFormalParameter_type_named(); |
| 553 } |
| 554 |
| 555 @override |
| 556 @failingTest |
| 557 void test_parseFormalParameter_type_positional() { |
| 558 // TODO(scheglov): Unhandled event: ValuedFormalParameter |
| 559 super.test_parseFormalParameter_type_positional(); |
| 560 } |
| 561 |
| 562 @override |
| 563 @failingTest |
| 564 void test_parseFormalParameter_var_named() { |
| 565 // TODO(scheglov): Unhandled event: ValuedFormalParameter |
| 566 super.test_parseFormalParameter_var_named(); |
| 567 } |
| 568 |
| 569 @override |
| 570 @failingTest |
| 571 void test_parseFormalParameter_var_normal() { |
| 572 // TODO(scheglov): parse var |
| 573 super.test_parseFormalParameter_var_normal(); |
| 574 } |
| 575 |
| 576 @override |
| 577 @failingTest |
| 578 void test_parseFormalParameter_var_positional() { |
| 579 // TODO(scheglov): Unhandled event: ValuedFormalParameter |
| 580 super.test_parseFormalParameter_var_positional(); |
| 581 } |
| 582 |
| 583 @override |
| 584 @failingTest |
| 585 void test_parseFormalParameterList_named_multiple() { |
| 586 // TODO(scheglov): Unhandled event: ValuedFormalParameter |
| 587 super.test_parseFormalParameterList_named_multiple(); |
| 588 } |
| 589 |
| 590 @override |
| 591 @failingTest |
| 592 void test_parseFormalParameterList_named_single() { |
| 593 // TODO(scheglov): Unhandled event: OptionalFormalParameters |
| 594 super.test_parseFormalParameterList_named_single(); |
| 595 } |
| 596 |
| 597 @override |
| 598 @failingTest |
| 599 void test_parseFormalParameterList_named_trailing_comma() { |
| 600 // TODO(scheglov): Unhandled event: OptionalFormalParameters |
| 601 super.test_parseFormalParameterList_named_trailing_comma(); |
| 602 } |
| 603 |
| 604 @override |
| 605 @failingTest |
| 606 void test_parseFormalParameterList_normal_named() { |
| 607 // TODO(scheglov): Unhandled event: OptionalFormalParameters |
| 608 super.test_parseFormalParameterList_normal_named(); |
| 609 } |
| 610 |
| 611 @override |
| 612 @failingTest |
| 613 void test_parseFormalParameterList_normal_named_inFunctionType() { |
| 614 // TODO(scheglov): Unhandled event: OptionalFormalParameters |
| 615 super.test_parseFormalParameterList_normal_named_inFunctionType(); |
| 616 } |
| 617 |
| 618 @override |
| 619 @failingTest |
| 620 void test_parseFormalParameterList_normal_positional() { |
| 621 // TODO(scheglov): Unhandled event: OptionalFormalParameters |
| 622 super.test_parseFormalParameterList_normal_positional(); |
| 623 } |
| 624 |
| 625 @override |
| 626 @failingTest |
| 627 void test_parseFormalParameterList_positional_multiple() { |
| 628 // TODO(scheglov): Unhandled event: ValuedFormalParameter |
| 629 super.test_parseFormalParameterList_positional_multiple(); |
| 630 } |
| 631 |
| 632 @override |
| 633 @failingTest |
| 634 void test_parseFormalParameterList_positional_single() { |
| 635 // TODO(scheglov): Unhandled event: ValuedFormalParameter |
| 636 super.test_parseFormalParameterList_positional_single(); |
| 637 } |
| 638 |
| 639 @override |
| 640 @failingTest |
| 641 void test_parseFormalParameterList_positional_trailing_comma() { |
| 642 // TODO(scheglov): Unhandled event: OptionalFormalParameters |
| 643 super.test_parseFormalParameterList_positional_trailing_comma(); |
| 644 } |
| 645 |
| 646 @override |
| 647 @failingTest |
| 648 void test_parseFormalParameterList_prefixedType() { |
| 649 // TODO(scheglov): Unhandled event: Qualified |
| 650 super.test_parseFormalParameterList_prefixedType(); |
| 651 } |
| 652 |
| 653 @override |
| 654 @failingTest |
| 655 void test_parseFormalParameterList_prefixedType_partial() { |
| 656 // TODO(scheglov): Unimplemented: errors |
| 657 super.test_parseFormalParameterList_prefixedType_partial(); |
| 658 } |
| 659 |
| 660 @override |
| 661 @failingTest |
| 662 void test_parseFormalParameterList_prefixedType_partial2() { |
| 663 // TODO(scheglov): Unimplemented: errors |
| 664 super.test_parseFormalParameterList_prefixedType_partial2(); |
| 665 } |
| 666 |
| 667 @override |
| 668 @failingTest |
| 669 void test_parseNormalFormalParameter_field_const_noType() { |
| 670 // TODO(scheglov): 'this' can't be used here. |
| 671 super.test_parseNormalFormalParameter_field_const_noType(); |
| 672 } |
| 673 |
| 674 @override |
| 675 @failingTest |
| 676 void test_parseNormalFormalParameter_field_const_type() { |
| 677 // TODO(scheglov): 'this' can't be used here. |
| 678 super.test_parseNormalFormalParameter_field_const_type(); |
| 679 } |
| 680 |
| 681 @override |
| 682 @failingTest |
| 683 void test_parseNormalFormalParameter_field_final_noType() { |
| 684 // TODO(scheglov): 'this' can't be used here. |
| 685 super.test_parseNormalFormalParameter_field_final_noType(); |
| 686 } |
| 687 |
| 688 @override |
| 689 @failingTest |
| 690 void test_parseNormalFormalParameter_field_final_type() { |
| 691 // TODO(scheglov): 'this' can't be used here. |
| 692 super.test_parseNormalFormalParameter_field_final_type(); |
| 693 } |
| 694 |
| 695 @override |
| 696 @failingTest |
| 697 void test_parseNormalFormalParameter_field_function_nested() { |
| 698 // TODO(scheglov): Unhandled event: FunctionTypedFormalParameter |
| 699 super.test_parseNormalFormalParameter_field_function_nested(); |
| 700 } |
| 701 |
| 702 @override |
| 703 @failingTest |
| 704 void test_parseNormalFormalParameter_field_function_noNested() { |
| 705 // TODO(scheglov): Unhandled event: FunctionTypedFormalParameter |
| 706 super.test_parseNormalFormalParameter_field_function_noNested(); |
| 707 } |
| 708 |
| 709 @override |
| 710 @failingTest |
| 711 void test_parseNormalFormalParameter_field_noType() { |
| 712 // TODO(scheglov): 'this' can't be used here. |
| 713 super.test_parseNormalFormalParameter_field_noType(); |
| 714 } |
| 715 |
| 716 @override |
| 717 @failingTest |
| 718 void test_parseNormalFormalParameter_field_type() { |
| 719 // TODO(scheglov): 'this' can't be used here. |
| 720 super.test_parseNormalFormalParameter_field_type(); |
| 721 } |
| 722 |
| 723 @override |
| 724 @failingTest |
| 725 void test_parseNormalFormalParameter_field_var() { |
| 726 // TODO(scheglov): 'this' can't be used here. |
| 727 super.test_parseNormalFormalParameter_field_var(); |
| 728 } |
| 729 |
| 730 @override |
| 731 @failingTest |
| 732 void test_parseNormalFormalParameter_function_noType() { |
| 733 // TODO(scheglov): Unhandled event: FunctionTypedFormalParameter |
| 734 super.test_parseNormalFormalParameter_function_noType(); |
| 735 } |
| 736 |
| 737 @override |
| 738 @failingTest |
| 739 void test_parseNormalFormalParameter_function_noType_nullable() { |
| 740 // TODO(scheglov): Not implemented: Nnbd |
| 741 super.test_parseNormalFormalParameter_function_noType_nullable(); |
| 742 } |
| 743 |
| 744 @override |
| 745 @failingTest |
| 746 void test_parseNormalFormalParameter_function_noType_typeParameterComments() { |
| 747 // TODO(scheglov): Not implemented: enableGenericMethodComments= |
| 748 super |
| 749 .test_parseNormalFormalParameter_function_noType_typeParameterComments()
; |
| 750 } |
| 751 |
| 752 @override |
| 753 @failingTest |
| 754 void test_parseNormalFormalParameter_function_noType_typeParameters() { |
| 755 // TODO(scheglov): Unhandled event: TypeVariable |
| 756 super.test_parseNormalFormalParameter_function_noType_typeParameters(); |
| 757 } |
| 758 |
| 759 @override |
| 760 @failingTest |
| 761 void |
| 762 test_parseNormalFormalParameter_function_noType_typeParameters_nullable()
{ |
| 763 // TODO(scheglov): Not implemented: Nnbd |
| 764 super |
| 765 .test_parseNormalFormalParameter_function_noType_typeParameters_nullable
(); |
| 766 } |
| 767 |
| 768 @override |
| 769 @failingTest |
| 770 void test_parseNormalFormalParameter_function_type() { |
| 771 // TODO(scheglov): Unhandled event: FunctionTypedFormalParameter |
| 772 super.test_parseNormalFormalParameter_function_type(); |
| 773 } |
| 774 |
| 775 @override |
| 776 @failingTest |
| 777 void test_parseNormalFormalParameter_function_type_nullable() { |
| 778 // TODO(scheglov): Not implemented: Nnbd |
| 779 super.test_parseNormalFormalParameter_function_type_nullable(); |
| 780 } |
| 781 |
| 782 @override |
| 783 @failingTest |
| 784 void test_parseNormalFormalParameter_function_type_typeParameterComments() { |
| 785 // TODO(scheglov): Not implemented: enableGenericMethodComments= |
| 786 super.test_parseNormalFormalParameter_function_type_typeParameterComments(); |
| 787 } |
| 788 |
| 789 @override |
| 790 @failingTest |
| 791 void test_parseNormalFormalParameter_function_type_typeParameters() { |
| 792 // TODO(scheglov): Unhandled event: TypeVariable |
| 793 super.test_parseNormalFormalParameter_function_type_typeParameters(); |
| 794 } |
| 795 |
| 796 @override |
| 797 @failingTest |
| 798 void test_parseNormalFormalParameter_function_type_typeParameters_nullable() { |
| 799 // TODO(scheglov): Not implemented: Nnbd |
| 800 super |
| 801 .test_parseNormalFormalParameter_function_type_typeParameters_nullable()
; |
| 802 } |
| 803 |
| 804 @override |
| 805 @failingTest |
| 806 void test_parseNormalFormalParameter_function_void() { |
| 807 // TODO(scheglov): Unhandled event: VoidKeyword |
| 808 super.test_parseNormalFormalParameter_function_void(); |
| 809 } |
| 810 |
| 811 @override |
| 812 @failingTest |
| 813 void test_parseNormalFormalParameter_function_void_nullable() { |
| 814 // TODO(scheglov): Not implemented: Nnbd |
| 815 super.test_parseNormalFormalParameter_function_void_nullable(); |
| 816 } |
| 817 |
| 818 @override |
| 819 @failingTest |
| 820 void test_parseNormalFormalParameter_function_void_typeParameterComments() { |
| 821 // TODO(scheglov): Not implemented: enableGenericMethodComments= |
| 822 super.test_parseNormalFormalParameter_function_void_typeParameterComments(); |
| 823 } |
| 824 |
| 825 @override |
| 826 @failingTest |
| 827 void test_parseNormalFormalParameter_function_void_typeParameters() { |
| 828 // TODO(scheglov): Unhandled event: VoidKeyword |
| 829 super.test_parseNormalFormalParameter_function_void_typeParameters(); |
| 830 } |
| 831 |
| 832 @override |
| 833 @failingTest |
| 834 void test_parseNormalFormalParameter_function_void_typeParameters_nullable() { |
| 835 // TODO(scheglov): Not implemented: Nnbd |
| 836 super |
| 837 .test_parseNormalFormalParameter_function_void_typeParameters_nullable()
; |
| 838 } |
| 839 |
| 840 @override |
| 841 @failingTest |
| 842 void test_parseNormalFormalParameter_simple_const_noType() { |
| 843 // TODO(scheglov): parse const |
| 844 super.test_parseNormalFormalParameter_simple_const_noType(); |
| 845 } |
| 846 |
| 847 @override |
| 848 @failingTest |
| 849 void test_parseNormalFormalParameter_simple_const_type() { |
| 850 // TODO(scheglov): parse const |
| 851 super.test_parseNormalFormalParameter_simple_const_type(); |
| 852 } |
| 853 |
| 854 @override |
| 855 @failingTest |
| 856 void test_parseNormalFormalParameter_simple_final_noType() { |
| 857 // TODO(scheglov): parse final |
| 858 super.test_parseNormalFormalParameter_simple_final_noType(); |
| 859 } |
| 860 |
| 861 @override |
| 862 @failingTest |
| 863 void test_parseNormalFormalParameter_simple_final_type() { |
| 864 // TODO(scheglov): parse final |
| 865 super.test_parseNormalFormalParameter_simple_final_type(); |
| 866 } |
| 867 |
| 868 @override |
| 869 @failingTest |
| 870 void test_parseNormalFormalParameter_simple_noName() { |
| 871 // TODO(scheglov): in function type, type instead of parameter name |
| 872 super.test_parseNormalFormalParameter_simple_noName(); |
| 873 } |
| 874 } |
| 875 |
| 876 /** |
| 358 * Proxy implementation of [KernelClassElement] used by Fasta parser tests. | 877 * Proxy implementation of [KernelClassElement] used by Fasta parser tests. |
| 359 * | 878 * |
| 360 * Any element used as a type name is presumed to refer to an instance of this | 879 * Any element used as a type name is presumed to refer to an instance of this |
| 361 * class. | 880 * class. |
| 362 */ | 881 */ |
| 363 class InterfaceTypeProxy implements KernelInterfaceType { | 882 class InterfaceTypeProxy implements KernelInterfaceType { |
| 364 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 883 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 365 } | 884 } |
| 366 | 885 |
| 367 /** | 886 /** |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 995 void test_parseTypeAlias_genericFunction_typeParameters_voidReturnType() { | 1514 void test_parseTypeAlias_genericFunction_typeParameters_voidReturnType() { |
| 996 super.test_parseTypeAlias_genericFunction_typeParameters_voidReturnType(); | 1515 super.test_parseTypeAlias_genericFunction_typeParameters_voidReturnType(); |
| 997 } | 1516 } |
| 998 | 1517 |
| 999 @override | 1518 @override |
| 1000 @failingTest | 1519 @failingTest |
| 1001 void test_parseTypeAlias_genericFunction_voidReturnType() { | 1520 void test_parseTypeAlias_genericFunction_voidReturnType() { |
| 1002 super.test_parseTypeAlias_genericFunction_voidReturnType(); | 1521 super.test_parseTypeAlias_genericFunction_voidReturnType(); |
| 1003 } | 1522 } |
| 1004 } | 1523 } |
| OLD | NEW |