Skip to content
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

Typeshare can now detect types within embedded modules #109

Merged
merged 4 commits into from
Apr 27, 2023

Conversation

snowsignal
Copy link
Contributor

Say, for instance, you have this situation:

mod inline_module {
  #[typeshare]
  pub struct Inline;
}

Previously, Inline would not be detected since our parser was not scanning the contents of inline/embedded modules. This has been fixed.

Resolves #40

core/src/parser.rs Show resolved Hide resolved
@snowsignal snowsignal merged commit cf70742 into main Apr 27, 2023
@snowsignal snowsignal deleted the jane/parse-modules branch April 27, 2023 00:27
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.

Typeshare ignores type annotations in embedded modules
2 participants