lookup_path


Description:

public bool lookup_path (string ast_path, out int start_line, out int end_line, out int comment_start_line)

Lookup AST path and return line range.

First tries exact match. If not found, iterates through all paths and returns the first match using suffix string matching.

Parameters:

ast_path

AST path to lookup (e.g., "Namespace-Class-Method")

start_line

Output parameter for starting line number (1-indexed, -1 if not found)

end_line

Output parameter for ending line number (1-indexed, -1 if not found)

include_comments

Include preceding comments when available

Returns:

true if found, false if not found