Skip to main content

C# language indexer plugin for CodeMap

Project description

codemap-csharp

A C# language indexer for CodeMap, shipped as an independent PyPI package.

What it captures

Backed by tree-sitter-c-sharp:

AST node Symbol kind
namespace_declaration (incl. qualified_name) namespace prefix (recursed into)
class_declaration class
interface_declaration class (extra.csharp_kind=interface)
struct_declaration class (extra.csharp_kind=struct)
record_declaration class (extra.csharp_kind=record)
enum_declaration class (extra.csharp_kind=enum)
delegate_declaration class (extra.csharp_kind=delegate)
method_declaration method
property_declaration field (extra.csharp_kind=property)
field_declarationvariable_declarator field
enum_member_declaration field

Top-level statements (C# 9+) are not surfaced as named symbols.

Install

pip install "git+https://github.com/qxbyte/codemap.git#subdirectory=plugins/codemap-csharp"

File patterns

  • *.cs, *.csx

Limits

  • File-scoped namespaces (namespace App;) and block-scoped namespaces are both handled, but global usings are not emitted as symbols.
  • Partial classes are emitted as separate symbols per file — the index layer does not currently merge them.

License

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codemap_csharp-0.1.0a1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codemap_csharp-0.1.0a1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file codemap_csharp-0.1.0a1.tar.gz.

File metadata

  • Download URL: codemap_csharp-0.1.0a1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for codemap_csharp-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 defb275612252087120de093caa75b4e10c448cbc59e35804228e6479788abe1
MD5 0dc246d752c2c71d3732f8450c341f36
BLAKE2b-256 e8fc2c61ae0d0d3a93c947e8c82092d420d2967152042112bef54b382b709ad2

See more details on using hashes here.

File details

Details for the file codemap_csharp-0.1.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for codemap_csharp-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 36d7d8745623d0b4dfb4bedd7cd77682ca51f3ecfa1b8d5604e877cd9695e28f
MD5 7e034f86ef96454e5bad84ca2665ca20
BLAKE2b-256 46bf38d20111b6f300c53664a4076f4ccfe415cd009a017aa5a57b33b7dbd744

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page