Skip to content

Refactor extractors to be initialized with source#91

Merged
dempseyatgithub merged 3 commits intoswiftlang:mainfrom
dempseyatgithub:append-error-refactoring
Feb 12, 2026
Merged

Refactor extractors to be initialized with source#91
dempseyatgithub merged 3 commits intoswiftlang:mainfrom
dempseyatgithub:append-error-refactoring

Conversation

@dempseyatgithub
Copy link
Copy Markdown
Collaborator

Refactor extractors to be initialized with source.

Errors are generated during the swift-markdown visitor methods and need access to the source project and proposal number to determine validation exemptions. This change adds a source property to each extractor so the required information is available.

- Make source a property of extractors
- Move source argument from 'extract' method to 'init'
- Update ValueExtractor protocol and extractValue function
@dempseyatgithub dempseyatgithub merged commit de18d28 into swiftlang:main Feb 12, 2026
11 checks passed
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