Metadata-Version: 2.4
Name: codemap-kotlin
Version: 0.1.0a1
Summary: Kotlin indexer plugin for CodeMap
Project-URL: Homepage, https://github.com/qxbyte/codemap
Author: CodeMap Contributors
License: MIT
Keywords: codemap,indexer,kotlin,tree-sitter
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Kotlin
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development
Requires-Python: >=3.11
Requires-Dist: codemap-core<0.2,>=0.1.0a1
Requires-Dist: tree-sitter-kotlin>=1.1
Requires-Dist: tree-sitter>=0.25
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == 'dev'
Description-Content-Type: text/markdown

# codemap-kotlin

> A Kotlin indexer for [CodeMap](https://github.com/qxbyte/codemap),
> shipped as an independent PyPI package.

## What it captures

Backed by `tree-sitter-kotlin`:

| AST node | Symbol kind |
|---|---|
| `class_declaration` (keyword `class`) | `class` (with `extra.kotlin_kind=class`) |
| `class_declaration` (keyword `interface`) | `class` (with `extra.kotlin_kind=interface`) |
| `object_declaration` | `class` (with `extra.kotlin_kind=object`) |
| `function_declaration` (free) | `function` |
| `function_declaration` (inside type) | `method` |
| `property_declaration` (top-level) | `variable` |
| `property_declaration` (inside type) | `field` |

`package_header` is captured as `extra.package` on type symbols.

## Install

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

## SymbolID encoding

```
scip-kotlin . . . src/main/kotlin/User.kt/User#hello().
```

## Limits

* Companion object members are not attached to the enclosing class.
* Generic-parameter descriptors are dropped.

## License

MIT.
