-
Notifications
You must be signed in to change notification settings - Fork 1
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
JsonSerializerOptions analyzer #4
Conversation
dawedawe
commented
Sep 20, 2023
- add a JsonSerializerOptions analyzer
- refactor testing code
- add tests for new analyzer
- refactor testing code - add tests for new analyzer
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.
Good stuff here, happy about the progress!
module JsonSerializerOptionsAnalyzer = | ||
|
||
[<Literal>] | ||
let Code = "GRA-002" |
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.
I think this code thing is going to be a lot of fun.
|
||
match ctx.TypedTree with | ||
| None -> () | ||
| Some typedTree -> typedTree.Declarations |> List.iter (visitDeclaration handler) |
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.
It seems like we have a different take on how we find the information.
In the String analyzers, I went with checking the untyped tree first in order to find invocations. I wonder what the most beneficial way is of doing things.
I genuinely do not know what is best in this case.
Let's discuss this tomorrow maybe.
This reverts commit b4cab32.
…ve different handlers for the various parts of the TAST an analyzer might want to handle.
good to go in now |
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.
Great work!