Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /Consiliency_treesitter-chunker /chunker /languages /cs.py
| from __future__ import annotations | |
| from .base import LanguageConfig, language_config_registry | |
| class CSharpConfig(LanguageConfig): | |
| """Language configuration for C# (csharp).""" | |
| def language_id(self) -> str: | |
| return "c_sharp" | |
| def name(self) -> str: | |
| # Canonical display name expected by tests | |
| return "csharp" | |
| def chunk_types(self) -> set[str]: | |
| # Common C# tree-sitter node types of interest | |
| return { | |
| "class_declaration", | |
| "struct_declaration", | |
| "interface_declaration", | |
| "enum_declaration", | |
| "method_declaration", | |
| "constructor_declaration", | |
| "property_declaration", | |
| "field_declaration", | |
| "delegate_declaration", | |
| "record_declaration", | |
| } | |
| def file_extensions(self) -> set[str]: | |
| return {".cs", ".csx"} | |
| # Register config with aliases so tests using "csharp" resolve | |
| language_config_registry.register(CSharpConfig(), aliases=["csharp"]) | |
Xet Storage Details
- Size:
- 1.08 kB
- Xet hash:
- 777df4667a22377a32dd49f231ca521cda28b0945cbfcd6c1bcaee3f23a14baf
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.