-
Notifications
You must be signed in to change notification settings - Fork 226
Feature/Improved Tokens #7980
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
Feature/Improved Tokens #7980
Conversation
chidozieononiwu
commented
Mar 29, 2024
- Switch C# APIView Parser from Flat list of Tokens to Tree Tokens
|
Can you please include a markdown about token structure and token types so it will be easier for language owners to make the change? |
Yep - waiting on this so I can add Java support. |
a935767 to
dd99fc0
Compare
dd99fc0 to
512bcb3
Compare
9d2a1fb to
c663a95
Compare
23bb386 to
3c3723e
Compare
4f5bb91 to
bd103ea
Compare
tjprescott
left a comment
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.
Please beef up the documentation.
praveenkuttappan
left a comment
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.
Parser name needs to be modified along with other small changes that can improve perf.
| return rootCommand.InvokeAsync(args).Result; | ||
|
|
||
|
|
||
| static void HandlePackageFileParsing(Stream stream, FileInfo packageFilePath, DirectoryInfo OutputDirectory, string outputFileName, bool runAnalysis) |
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.
This can potentially be simplified with the NuGet.Protocol package - samples here
a9abecc to
5f2bed0
Compare
| Url | ||
| ``` | ||
|
|
||
| ### APITreeNode |
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.
Documenting here the classes won't scale and the documentation will get out of date. Instead, let's do the documentation in the class itself and point people there.
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.
Personally, I would rather not try to interpret C# code comments when working out how to write my parser in Java - I only fall back to looking there when the markdown is missing some details.
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.
100% agree with @JonathanGiles. Parser authors should not be forced to dig around in C# source code as a substitute for actual documentation.
Parse C# Assemblly to Token Tree Add Token Tree Documentation Add LineDefinitionId and HideFromNavigation Undo internals visible to setting Sort NameSpaces and Types Ensure Each node has Name and Id Serialize to Message Pack Add Tags to StructuredToken update tree Token Parser Documentation Attempt to Improve Serialized JSON Size Properties for Serialization and Deserialization Use shorter names for diagnostics update APIView Parser Contributing guide Delete TreeTokenCodeFile Update APIView C# Parser Project Name Add MessagePack Serialization Switch to System.Json.Text working Update Contributing Doc Add Navigate to ID Make Parser a dotnet Tool Update Parser Version for CodeFile App Parser Style Property Output GZipped TokenFile Switch to Human Readable Json Property Names, use compression Fix some issues raised in pull request Updating Contributing.md Update Contributing Docs
5f2bed0 to
daf0679
Compare
Parse C# Assemblly to Token Tree Add Token Tree Documentation Add LineDefinitionId and HideFromNavigation Undo internals visible to setting Sort NameSpaces and Types Ensure Each node has Name and Id Serialize to Message Pack Add Tags to StructuredToken update tree Token Parser Documentation Attempt to Improve Serialized JSON Size Properties for Serialization and Deserialization Use shorter names for diagnostics update APIView Parser Contributing guide Delete TreeTokenCodeFile Update APIView C# Parser Project Name Add MessagePack Serialization Switch to System.Json.Text working Update Contributing Doc Add Navigate to ID Make Parser a dotnet Tool Update Parser Version for CodeFile App Parser Style Property Output GZipped TokenFile Switch to Human Readable Json Property Names, use compression Fix some issues raised in pull request Updating Contributing.md Update Contributing Docs initial pass to documentation fix pr feedback one missed
Initial pass to improve token documentation
1e228ab to
76ce86c
Compare
09f218f to
22a72db
Compare