Expand description
Per-language syntax adapters. The generic walk in crate::parse asks each question of the
file’s language; adding a language means implementing LangSpec for its grammar.
Modules§
- go
- Go syntax adapter (tree-sitter-go). A package is a directory; methods attach to receivers.
- java
- Java syntax adapter (tree-sitter-java). Packages come from the
packagedeclaration. - kotlin
- Kotlin syntax adapter (tree-sitter-kotlin-ng). Shares the JVM package namespace with Java.
- python
- Python syntax adapter (tree-sitter-python).
- rust
- Rust syntax adapter (tree-sitter-rust). Modules follow files; methods attach via
impl. - spring
- Spring MVC and OpenFeign contracts for Java and Kotlin: mapping annotations on controller
methods serve routes, the same annotations on
@FeignClientinterfaces consume them. - typescript
- TypeScript / JavaScript syntax adapter (tree-sitter-typescript, TS and TSX grammars).
Enums§
- RawContract
- Service-boundary syntax found at a node; the walk fills in scope ids.
- Target
- What an assignment’s left-hand side names.