Skip to content

[Macros] Create macro expansion contexts based on the SourceManager #63407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

DougGregor
Copy link
Member

Rather than trying to patch up the "basic" macro expansion context that comes from the swift-syntax package, implement our own based on the new SourceManager. Fixes the location(of:) operation.

Rather than trying to patch up the "basic" macro expansion context
that comes from the swift-syntax package, implement our own based
on the new SourceManager. Fixes the `location(of:)` operation.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test and merge

@DougGregor
Copy link
Member Author

@swift-ci please build toolchain macOS

@swift-ci swift-ci merged commit d67b65b into swiftlang:main Feb 3, 2023
@DougGregor DougGregor deleted the macros-source-manager-expansion-context branch February 3, 2023 16:31
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.

2 participants