ast_lookup


Description:

public async bool ast_lookup (string ast_path, out int start_line, out int end_line, out int comment_start) throws Error

Line range for an AST path (File.ast_lookup).

response.msg is start end comment_start (1-based lines). Empty msg means the path was not found.

Parameters:

ast_path

tree-sitter path

start_line

element start line

end_line

element end line

comment_start

preceding comment start, or start_line

Returns:

false when path/ast_path is empty or the AST path is missing

Exceptions:

GLib.Error

if the RPC fails