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

# codemap-swift

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

## What it captures

Backed by `tree-sitter-swift`:

| AST node | Symbol kind |
|---|---|
| `class_declaration` (keyword `class`) | `class` (with `extra.swift_kind=class`) |
| `class_declaration` (keyword `struct`) | `class` (with `extra.swift_kind=struct`) |
| `class_declaration` (keyword `enum`) | `class` (with `extra.swift_kind=enum`) |
| `protocol_declaration` | `class` (with `extra.swift_kind=protocol`) |
| `function_declaration` | `function` (free) or `method` (inside type) |
| `init_declaration` | `method` (signature prefixed with `init`) |
| `property_declaration` (top-level) | `variable` |
| `property_declaration` (inside type) | `field` |

## Install

```bash
pip install codemap-swift
```

## SymbolID encoding

```
scip-swift . . . src/User.swift/User#hello().
```

## Limits

* Extensions (`extension User { ... }`) are not yet tracked.
* Generic-parameter descriptors are dropped.
* Property wrappers are ignored.

## License

MIT.
