-
Notifications
You must be signed in to change notification settings - Fork 49
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
Add support for C-Sharp #789
Comments
Good idea! |
So folding in lessons learned from #694 I am starting with some research and definitions. Thankfully C# has a fairly clear definition of a statement as well as a comprehensive list of the different types: A cursory look through seems to indicate, unsurprisingly, that it is much the same as Java. I will raise it if I find any weird difference. Should I create an issue per metric to track this or link PRs here? |
So bumping into my first challenge here. I guess this is the reason I get:
when trying to add I assume the fix here is to ask @dcreager, the owner of the crate, if it can be updated? |
Just published If you're using |
Thanks so much @dcreager 🙏 |
Let's just use this one, maybe you can edit the first comment to add a list of metrics with checkmarks. |
After adding
I am not 100% sure what is going on here. Running
Then when I add
As you can see So my understanding (with very little Rust experience) is that the enum crate is using the higher I actually ran into this issue trying to consume ``rust-code-analysis So @marco-c I am going to need some help on how to resolve this:
I see there is a ticket for upgrading Sorry about the wall of text if this is all know stuff but it helped me attempt to reason through it. |
To try confirm the above I downgraded typescript and mozcpp and pinned the tree-sitter in enum to 0.19.3 and the enum project compiles again. |
I think we should try to have all grammars use the same tree-sitter version, otherwise we have too many complications. We should either update all to 0.20, or revert all to 0.19. |
I imagine we would use tree-sitter-c-sharp.
Since the Java metrics are growing I would like to add C# too. I imagine the implementations should be close to identical.
The text was updated successfully, but these errors were encountered: