Skip to content

[Const Extraction] Resolve member references which are constant and embed their values - #91408

Open
dendiz wants to merge 3 commits into
swiftlang:mainfrom
dendiz:ddizman/memberref-follow
Open

[Const Extraction] Resolve member references which are constant and embed their values#91408
dendiz wants to merge 3 commits into
swiftlang:mainfrom
dendiz:ddizman/memberref-follow

Conversation

@dendiz

@dendiz dendiz commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Try to follow and resolve member references to their constant values and embed into the const values file. If they are not resolvable fall back to a MemberReference kind. This allows extraction for usages like

enum MyConstants {
  static let key = "mykey"
}

struct MyEntity: IndexedEntity {
   @Property(indexingKey: MyConstants.key) let someProperty: String
   ....
}

fixes rdar://184639902

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