Skip to content

Commit

Permalink
convert: comment out syntax_type and definiens_node which are not yet…
Browse files Browse the repository at this point in the history
… supported
  • Loading branch information
hendrikvanantwerpen committed Jun 2, 2023
1 parent 6c3397b commit 6138853
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions languages/tree-sitter-stack-graphs-python/src/stack-graphs.tsg
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ inherit .parent_module
parameters: (parameters) @params
body: (block) @body) @func
{
attr (@name.def) definiens_node = @func
; attr (@name.def) definiens_node = @func
edge @func.after_scope -> @name.def
edge @name.def -> @func.call
edge @func.call -> @func.return_value
Expand Down Expand Up @@ -495,52 +495,52 @@ inherit .parent_module
;;

[
(class_definition (block (decorated_definition (function_definition name: (_)@name))))
(class_definition (block (function_definition name: (_)@name)))
(class_definition (block (decorated_definition (function_definition name: (_)@_name))))
(class_definition (block (function_definition name: (_)@_name)))
]
{
attr (@name.def) syntax_type = "method"
; attr (@name.def) syntax_type = "method"
}

[
(module (decorated_definition (function_definition name: (_)@name)))
(module (function_definition name: (_)@name))
(module (decorated_definition (function_definition name: (_)@_name)))
(module (function_definition name: (_)@_name))

(if_statement (block (decorated_definition (function_definition name: (_)@name))))
(if_statement (block (function_definition name: (_)@name)))
(if_statement (block (decorated_definition (function_definition name: (_)@_name))))
(if_statement (block (function_definition name: (_)@_name)))

(elif_clause (block (decorated_definition (function_definition name: (_)@name))))
(elif_clause (block (function_definition name: (_)@name)))
(elif_clause (block (decorated_definition (function_definition name: (_)@_name))))
(elif_clause (block (function_definition name: (_)@_name)))

(else_clause (block (decorated_definition (function_definition name: (_)@name))))
(else_clause (block (function_definition name: (_)@name)))
(else_clause (block (decorated_definition (function_definition name: (_)@_name))))
(else_clause (block (function_definition name: (_)@_name)))

(case_clause (block (decorated_definition (function_definition name: (_)@name))))
(case_clause (block (function_definition name: (_)@name)))
(case_clause (block (decorated_definition (function_definition name: (_)@_name))))
(case_clause (block (function_definition name: (_)@_name)))

(for_statement (block (decorated_definition (function_definition name: (_)@name))))
(for_statement (block (function_definition name: (_)@name)))
(for_statement (block (decorated_definition (function_definition name: (_)@_name))))
(for_statement (block (function_definition name: (_)@_name)))

(while_statement (block (decorated_definition (function_definition name: (_)@name))))
(while_statement (block (function_definition name: (_)@name)))
(while_statement (block (decorated_definition (function_definition name: (_)@_name))))
(while_statement (block (function_definition name: (_)@_name)))

(try_statement (block (decorated_definition (function_definition name: (_)@name))))
(try_statement (block (function_definition name: (_)@name)))
(try_statement (block (decorated_definition (function_definition name: (_)@_name))))
(try_statement (block (function_definition name: (_)@_name)))

(except_clause (block (decorated_definition (function_definition name: (_)@name))))
(except_clause (block (function_definition name: (_)@name)))
(except_clause (block (decorated_definition (function_definition name: (_)@_name))))
(except_clause (block (function_definition name: (_)@_name)))

(finally_clause (block (decorated_definition (function_definition name: (_)@name))))
(finally_clause (block (function_definition name: (_)@name)))
(finally_clause (block (decorated_definition (function_definition name: (_)@_name))))
(finally_clause (block (function_definition name: (_)@_name)))

(with_statement (block (decorated_definition (function_definition name: (_)@name))))
(with_statement (block (function_definition name: (_)@name)))
(with_statement (block (decorated_definition (function_definition name: (_)@_name))))
(with_statement (block (function_definition name: (_)@_name)))

(function_definition (block (decorated_definition (function_definition name: (_)@name))))
(function_definition (block (function_definition name: (_)@name)))
(function_definition (block (decorated_definition (function_definition name: (_)@_name))))
(function_definition (block (function_definition name: (_)@_name)))
]
{
attr (@name.def) syntax_type = "function"
; attr (@name.def) syntax_type = "function"
}

;;
Expand Down Expand Up @@ -631,8 +631,8 @@ inherit .parent_module
(class_definition
name: (identifier) @name) @class
{
attr (@name.def) definiens_node = @class
attr (@name.def) syntax_type = "class"
; attr (@name.def) definiens_node = @class
; attr (@name.def) syntax_type = "class"
edge @class.parent_scope -> @class.class_parent_scope
edge @class.parent_scope -> @class.local_scope
edge @class.after_scope -> @name.def
Expand Down

0 comments on commit 6138853

Please sign in to comment.