From d079d7e6b04e600837fc80bea5db9226d87fe924 Mon Sep 17 00:00:00 2001 From: Hendrik van Antwerpen Date: Fri, 2 Jun 2023 12:34:46 +0200 Subject: [PATCH] convert: always create .args --- .../tree-sitter-stack-graphs-python/src/stack-graphs.tsg | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/languages/tree-sitter-stack-graphs-python/src/stack-graphs.tsg b/languages/tree-sitter-stack-graphs-python/src/stack-graphs.tsg index 1d79c8e1f..a88151398 100644 --- a/languages/tree-sitter-stack-graphs-python/src/stack-graphs.tsg +++ b/languages/tree-sitter-stack-graphs-python/src/stack-graphs.tsg @@ -696,9 +696,6 @@ inherit .parent_module function: (_) @fn arguments: (argument_list) @args) @call { - node @args.args - attr (@args.args) is_exported - edge @call.output -> @call.output_args edge @call.output_args -> @fn.output attr (@call.output_args) push_scoped_symbol = "()", scope = @args.args @@ -734,6 +731,11 @@ inherit .parent_module edge arg_name -> @val.output } +(argument_list) @args { + node @args.args + attr (@args.args) is_exported +} + (argument_list (expression) @arg) @args {