feat(parse): Add C# AST extractor support#366
Merged
MaojiaSheng merged 1 commit intovolcengine:mainfrom Feb 28, 2026
Merged
Conversation
- Add CSharpExtractor class with support for: - Classes, interfaces, structs, records - Methods, constructors, properties - XML documentation comments (/// and /** */) - Namespaces and file-scoped namespaces - using directives - Register .cs file extension and csharp extractor - Add tree-sitter-c-sharp dependency - Add comprehensive tests aligned with other language extractors
MaojiaSheng
approved these changes
Feb 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add dedicated C# AST extractor support to the existing AST-based code skeleton extraction framework.
Changes Made
csharp.py- CSharpExtractor supporting classes, interfaces, structs, methods, properties, and XML documentation commentsextractor.py- Register .cs extension and csharp extractorpyproject.toml- Add tree-sitter-c-sharp dependencytest_ast_extractor.py- Add TestCSharpExtractor with 10 testsTesting
Related Issues
Related to #334 (feat: add AST-based code skeleton extraction mode)