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

Incorrect parsing of TernarySyntax

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Invalid
    • Component/s: SwiftSyntax
    • Labels:
      None

      Description

      It appears that TernarySyntax is not being parsed correctly. For instance, the following statement is parsed as a SequenceExprSyntax.  

      helper_func() == p1 ? true : false

      However, the following is parsed correctly as a TernarySyntax.   

      p1 ? true : false

      This problem is observed with SwiftSyntax 5.2

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            mkruber Murali Krishna Ramanathan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: