class

Noir::TreeSitterKotlinDtoIndex

Inherits Reference < Object

Cross-file Kotlin DTO index. Mirrors TreeSitterJavaDtoIndex: current file + same-directory siblings + imported files, all parsed via tree-sitter, results memoised across the analyzer's per-file loop.

Constants

MAX_INHERITANCE_RESOLUTIONS = 512

Backstop against pathological supertype graphs — far above any real DTO hierarchy depth/fan-out.

Constructors

Class methods

clear_cache!
Source

Instance methods

build_for(path : String, content : String) : Index
Source
build_for_with_root(path : String, content : String, root : LibTreeSitter::TSNode) : Index

Variant taking a pre-parsed root so the Kotlin Spring analyzer can share the parse across the route + parameter walks. Sibling files still parse independently — but go through the process-wide cache so concurrent analyzers don't double-up.

Source

Nested types