struct Noir::GoCalleeExtractor::FunctionBody

Overview

Top-level function definition captured for cross-file identifier handler resolution. #source is the full text of the function_declaration node, so re-parsing it yields the same body. #start_row is the 0-based row of the func keyword in #file_path, used to translate tree-sitter rows back to absolute file lines when the body is walked from a re-parse.

Defined in:

miniparsers/go_callee_extractor.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : String, file_path : String, start_row : Int32) #

[View source]

Instance Method Detail

def file_path : String #

[View source]
def source : String #

[View source]
def start_row : Int32 #

[View source]