Files
codegraph/__tests__
Colby McHenryandClaude Opus 4.8 d111f26573 feat(impact): Swift property wrappers & attributes — link @Argument/@Published/etc.
Swift is otherwise healthy (init calls -> instantiates, protocol conformances ->
implements). The systematic gap was property wrappers / attributes:

- A Swift `@X` parses as `property_declaration -> modifiers -> attribute ->
  user_type`. `extractDecoratorsFor` didn't recognize the `attribute` node type
  (only decorator/annotation/marker_annotation) nor extract the name from its
  `user_type` child, so every Swift attribute usage was dropped.
- Swift stored properties inside a type aren't extracted as their own nodes, so
  the decorator helper never ran on them. Added a dispatcher branch that runs
  extractDecoratorsFor + type-annotation extraction on Swift property declarations
  inside a type.

Now `@Argument`/`@Option`/`@Published`/`@State`/custom `@propertyWrapper` usages
(and `@objc`/`@MainActor` on types/methods) link to the wrapper/attribute type.
Alamofire 93%->95.3%, swift-argument-parser 84.6%->96.2%. Reuses the same
extractDecoratorsFor path as the Java annotation fix, unifying
annotation/attribute/property-wrapper handling across Java/C#/Kotlin/Swift. New
test + CHANGELOG; full suite green (1151).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 00:18:17 -04:00
..