module

Loci::Analysis::Dead

Class methods

analyze(entries : Array(String), root_dir : String) : Array(Result)

Analyze entry points for dead code, dispatching per extension. Returns aggregated results across all entries.

Source
analyze_crystal(entry : String, root_dir : String) : Array(Result)

Shell out to crystal tool unreachable and parse the output.

Source
parse_crystal_output(text : String) : Array(Result)

Parse tab-separated output: src/foo.cr:38:7\tMyApp::Foo#bar\t6 lines

Source
parse_qualified(qualified : String) : Tuple(String | Nil, String, String)

Split "Scope::Chain#method" โ†’ {"Scope::Chain", "method", "method"} Split "Scope::Chain.method" โ†’ {"Scope::Chain", "method", "class_method"} Split "top_level" โ†’ {nil, "top_level", "def"}

Source

Nested types