class Noir::TreeSitterKotlinDtoIndex

Overview

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.

Defined in:

miniparsers/kotlin_parameter_extractor_ts.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.clear_cache! #

[View source]

Instance Method Detail

def build_for(path : String, content : String) : Index #

[View source]
def 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 sibling parses go through the process-wide cache so concurrent analyzers don't double-up.


[View source]