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

There's no obvious way to get content of a syntax node

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: SwiftSyntax
    • Labels:
      None

      Description

      Each syntax node has a contentLength property, which does not count the length of trivia. It would be great to have a way to get the text corresponding to this content. Currently, achieving this task is not super easy.

       

      Harlan Haskins Argyrios Kyrtzidis

        Attachments

          Activity

            People

            Assignee:
            nkcsgexi Xi Ge
            Reporter:
            duan Daniel Duan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: