|
444 | 444 | 'nonterm' Signature(-> SIGNATURE) |
445 | 445 |
|
446 | 446 | 'rule' Signature(-> signature(Parameters, Result)): |
447 | | - "(" OptionalParameterList(-> Parameters) ")" OptionalTypeClause(-> Result) |
| 447 | + "(" OptionalParameterList(-> Parameters) ")" OptionalReturnsClause(-> Result) |
| 448 | + |
| 449 | +'nonterm' OptionalReturnsClause(-> TYPE) |
| 450 | + |
| 451 | + 'rule' OptionalReturnsClause(-> Type): |
| 452 | + "as" @(-> Position) TypeNoUndefined(-> Type) |
| 453 | + Warning_UsingAsForHandlerReturnTypeDeprecated(Position) |
| 454 | + |
| 455 | + 'rule' OptionalReturnsClause(-> undefined(Position)): |
| 456 | + "as" "undefined" @(-> Position) |
| 457 | + Warning_UsingAsUndefinedForVoidHandlerReturnTypeDeprecated(Position) |
| 458 | + |
| 459 | + 'rule' OptionalReturnsClause(-> Type) |
| 460 | + "returns" @(-> Position) TypeNoUndefined(-> Type) |
| 461 | + |
| 462 | + 'rule' OptionalReturnsClause(-> undefined(Position)) |
| 463 | + "returns" "nothing" @(-> Position) |
| 464 | + |
| 465 | + 'rule' OptionalReturnsClause(-> optional(Position, any(Position))) |
| 466 | + @(-> Position) |
448 | 467 |
|
449 | 468 | 'nonterm' OptionalParameterList(-> PARAMETERLIST) |
450 | 469 |
|
|
566 | 585 | -- Type Syntax |
567 | 586 | -------------------------------------------------------------------------------- |
568 | 587 |
|
569 | | -'nonterm' Type(-> TYPE) |
| 588 | +'nonterm' TypeNoUndefined(-> TYPE) |
570 | 589 |
|
571 | | - 'rule' Type(-> named(Position, Name)): |
| 590 | + 'rule' TypeNoUndefined(-> named(Position, Name)): |
572 | 591 | Identifier(-> Name) @(-> Position) |
573 | 592 |
|
574 | | - 'rule' Type(-> optional(Position, Base)): |
| 593 | + 'rule' TypeNoUndefined(-> optional(Position, Base)): |
575 | 594 | "optional" @(-> Position) Type(-> Base) |
576 | 595 |
|
577 | | - 'rule' Type(-> any(Position)): |
| 596 | + 'rule' TypeNoUndefined(-> any(Position)): |
578 | 597 | "any" @(-> Position) |
579 | 598 |
|
580 | | - 'rule' Type(-> boolean(Position)): |
| 599 | + 'rule' TypeNoUndefined(-> boolean(Position)): |
581 | 600 | "Boolean" @(-> Position) |
582 | | - 'rule' Type(-> boolean(Position)): |
| 601 | + 'rule' TypeNoUndefined(-> boolean(Position)): |
583 | 602 | "boolean" @(-> Position) |
584 | 603 | Warning_DeprecatedTypeName(Position, "Boolean") |
585 | 604 |
|
586 | | - 'rule' Type(-> integer(Position)): |
| 605 | + 'rule' TypeNoUndefined(-> integer(Position)): |
587 | 606 | "Integer" @(-> Position) |
588 | | - 'rule' Type(-> integer(Position)): |
| 607 | + 'rule' TypeNoUndefined(-> integer(Position)): |
589 | 608 | "integer" @(-> Position) |
590 | 609 | Warning_DeprecatedTypeName(Position, "Integer") |
591 | 610 |
|
592 | | - 'rule' Type(-> real(Position)): |
| 611 | + 'rule' TypeNoUndefined(-> real(Position)): |
593 | 612 | "Real" @(-> Position) |
594 | | - 'rule' Type(-> real(Position)): |
| 613 | + 'rule' TypeNoUndefined(-> real(Position)): |
595 | 614 | "real" @(-> Position) |
596 | 615 | Warning_DeprecatedTypeName(Position, "Real") |
597 | 616 |
|
598 | | - 'rule' Type(-> number(Position)): |
| 617 | + 'rule' TypeNoUndefined(-> number(Position)): |
599 | 618 | "Number" @(-> Position) |
600 | | - 'rule' Type(-> number(Position)): |
| 619 | + 'rule' TypeNoUndefined(-> number(Position)): |
601 | 620 | "number" @(-> Position) |
602 | 621 | Warning_DeprecatedTypeName(Position, "Number") |
603 | 622 |
|
604 | | - 'rule' Type(-> string(Position)): |
| 623 | + 'rule' TypeNoUndefined(-> string(Position)): |
605 | 624 | "String" @(-> Position) |
606 | | - 'rule' Type(-> string(Position)): |
| 625 | + 'rule' TypeNoUndefined(-> string(Position)): |
607 | 626 | "string" @(-> Position) |
608 | 627 | Warning_DeprecatedTypeName(Position, "String") |
609 | 628 |
|
610 | | - 'rule' Type(-> data(Position)): |
| 629 | + 'rule' TypeNoUndefined(-> data(Position)): |
611 | 630 | "Data" @(-> Position) |
612 | | - 'rule' Type(-> data(Position)): |
| 631 | + 'rule' TypeNoUndefined(-> data(Position)): |
613 | 632 | "data" @(-> Position) |
614 | 633 | Warning_DeprecatedTypeName(Position, "Data") |
615 | 634 |
|
616 | | - 'rule' Type(-> array(Position)): |
| 635 | + 'rule' TypeNoUndefined(-> array(Position)): |
617 | 636 | "Array" @(-> Position) |
618 | | - 'rule' Type(-> array(Position)): |
| 637 | + 'rule' TypeNoUndefined(-> array(Position)): |
619 | 638 | "array" @(-> Position) |
620 | 639 | Warning_DeprecatedTypeName(Position, "Array") |
621 | 640 |
|
622 | | - 'rule' Type(-> list(Position, ElementType)): |
| 641 | + 'rule' TypeNoUndefined(-> list(Position, ElementType)): |
623 | 642 | "List" @(-> Position) OptionalElementType(-> ElementType) |
624 | | - 'rule' Type(-> list(Position, ElementType)): |
| 643 | + 'rule' TypeNoUndefined(-> list(Position, ElementType)): |
625 | 644 | "list" @(-> Position) OptionalElementType(-> ElementType) |
626 | 645 | Warning_DeprecatedTypeName(Position, "List") |
627 | 646 |
|
| 647 | +'nonterm' Type(-> TYPE) |
| 648 | + |
| 649 | + 'rule' Type(-> Type): |
| 650 | + TypeNoUndefined(-> Type) |
| 651 | + |
628 | 652 | 'rule' Type(-> undefined(Position)): |
629 | 653 | "undefined" @(-> Position) |
630 | | - |
| 654 | + Warning_UndefinedTypeDeprecated(Position) |
| 655 | + |
631 | 656 | 'nonterm' OptionalElementType(-> TYPE) |
632 | 657 |
|
633 | 658 | 'rule' OptionalElementType(-> Type) |
|
0 commit comments