Skip to content

Parse availability attributes with SwiftSyntax - #197

Merged
goergisn merged 2 commits into
mainfrom
refactor/swiftsyntax-availability
Nov 24, 2026
Merged

goergisn merged 2 commits into
mainfrom
refactor/swiftsyntax-availability

Conversation

@goergisn

@goergisn goergisn commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Replace custom availability string parsing with typed SwiftSyntax nodes.
  • Use native parsing for availability comparison and inheritance.
  • Preserve report wording, JSON format, and source spelling of quoted values.
  • Keep raw-attribute fallback for syntax we cannot interpret.
  • Document which SwiftParser definitions to check during SwiftSyntax upgrades.

Validation

  • Passed 158 unit tests and 4 integration tests.
  • Existing Markdown and JSON reference fixtures passed unchanged.
  • Added coverage for platform values, escaped strings, and malformed syntax.
  • Checked JSON and Markdown CLI output with the native parser.

@goergisn
goergisn added this pull request to stack #198 November 24, 2026 20:54
@goergisn goergisn changed the title Refactor/swiftsyntax availability Parse availability attributes with SwiftSyntax Nov 24, 2026
Base automatically changed from feature/json-output-release-fixes to main November 24, 2026 21:38
@goergisn
goergisn force-pushed the refactor/swiftsyntax-availability branch from 79fe192 to ce1cfe7 Compare November 24, 2026 21:38
@sonarqubecloud

Copy link
Copy Markdown

@goergisn
goergisn merged commit 63d234d into main Nov 24, 2026
5 checks passed
@goergisn
goergisn deleted the refactor/swiftsyntax-availability branch November 24, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant