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

Fix source-generator infinite loop #356

Merged
merged 1 commit into from
Aug 13, 2024
Merged

Fix source-generator infinite loop #356

merged 1 commit into from
Aug 13, 2024

Conversation

jasongin
Copy link
Member

Fixes: #351

The source generator could get into an infinite loop in certain cases such as when a type had a method with a parameter type that was a subclass of the type. ExpandoObject indirectly referenced some types that caused this issue.

This fixes the logic for handling self-referential types to avoid such infinite loops.

(The addition of System.Linq.Expressions to GetSystemType() is a minor optimization.)

@jasongin jasongin merged commit 02ca89d into main Aug 13, 2024
24 checks passed
@jasongin jasongin deleted the dev/jasongin/expando branch August 13, 2024 17:04
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.

JSExport On ExpandoObject Will Cause VS2022 Compiler Stuck
2 participants