-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Remove System.Reflection wrappers from the STJ source generator. #86334
Remove System.Reflection wrappers from the STJ source generator. #86334
Conversation
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis |
/// <summary> | ||
/// Traverses a DAG and returns its nodes applying topological sorting to the result. | ||
/// </summary> | ||
public static T[] TraverseGraphWithTopologicalSort<T>(T entryNode, Func<T, ICollection<T>> getChildren, IEqualityComparer<T>? comparer = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaces the algorithm now deleted from ReflectionExtensions.cs to one that better works for both Symbol and Type instances.
The plan is to remove |
Yes, the PR should be removing all the classes that make this abstraction possible. |
Fix #79533.
Contributes to #68353.