Uploaded image for project: 'Swift'
  1. Swift
  2. SR-11627

Element type of SwitchCaseListSyntax

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Won't Do
    • Component/s: SwiftSyntax
    • Labels:
      None

      Description

      SwitchCaseList syntax node currently has Syntax type for element.

       

      # switch-case-list -> switch-case switch-case-list?
      Node('SwitchCaseList', kind='SyntaxCollection',
        element='Syntax', element_name='SwitchCase',
        element_choices=['SwitchCase', 'IfConfigDecl']),
      

      However, I think we can make it SwitchCase instead of Syntax. Is there any case for SwitchCaseList to have multiple types of Syntax other than SwitchCase?

       

        Attachments

          Activity

            People

            Assignee:
            kitasuke Yusuke Kita
            Reporter:
            kitasuke Yusuke Kita
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: