module Noir::RustCalleeExtractor

Extended Modules

Defined in:

miniparsers/rust_callee_extractor.cr

Constant Summary

RESERVED = Noir::RustCalleeExtractorTS::RESERVED

Kept as a public constant for any external caller that still consults the reserved set; the active implementation lives on Noir::RustCalleeExtractorTS::RESERVED (same contents).

Instance Method Summary

Instance Method Detail

def attach_to(endpoint : Endpoint, callees : Array(Entry)) #

[View source]
def callees_for_body(body : String, file_path : String, start_line : Int32) : Array(Entry) #

Walk body (a function body extracted as raw text by the engine) and return every callee. Internally delegates to the tree-sitter extractor which walks the parsed AST instead of running per-line regexes. The public signature stays identical so existing analyzers don't need to change.


[View source]
def strip_comment(line : String, in_block_comment : Bool = false, preserve_strings : Bool = false) : String #

[View source]
def strip_comment_with_state(line : String, in_block_comment : Bool, preserve_strings : Bool = false) : Tuple(String, Bool) #

[View source]