stacklit icon indicating copy to clipboard operation
stacklit copied to clipboard

Add Kotlin and Dart tree-sitter support

Open thegdsks opened this issue 7 months ago • 1 comments

Stacklit currently parses 11 languages. Kotlin and Dart are the two most requested additions.

What needs to happen for each language:

  1. Add the tree-sitter grammar dependency
  2. Write queries for extracting exports (functions, classes, types)
  3. Write queries for extracting imports
  4. Add test fixtures with a small sample project
  5. Update the language list in README

The existing language implementations in the parser package are good references. Each language is roughly 50-100 lines of query definitions.

Good first contribution if you know either language.

thegdsks avatar Apr 16 '26 04:04 thegdsks

Fixed in #38. Dart is added, and the Kotlin extractor is fixed (objects, properties, enum entries and full function signatures). #41 adds symbol and call edges for both. Known gap: Kotlin interface declarations after a class can still produce a partial parse.

thegdsks avatar Nov 08 '26 19:11 thegdsks