Skip to content

Commit

Permalink
Lowers arguments nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
BekaValentine committed Jul 19, 2023
1 parent 221a9c6 commit ad5d5fc
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,6 @@ attribute node_symbol = node => symbol = (source-text node), source_n
;; ## Nodes

(_)@node {
node @node.arguments_pop
node @node.arguments_push
node @node.boundvar_pop
node @node.call
node @node.constructor
Expand Down Expand Up @@ -1093,8 +1091,11 @@ inherit .return_or_yield
parameters:(_)@call_sig
body:(_)@body)@fun_decl {

node @call_sig.arguments_pop
node @call_sig.arguments_push
node @name.pop
node @fun_decl.function_value

attr (@name.pop) syntax_type = "function"

; scope flows across the decl
Expand Down Expand Up @@ -1165,8 +1166,11 @@ inherit .return_or_yield
parameters:(_)@call_sig
body:(_)@body)@fun_decl {

node @call_sig.arguments_pop
node @call_sig.arguments_push
node @name.pop
node @fun_decl.function_value

attr (@name.pop) syntax_type = "function"

; scope flows across the decl
Expand Down Expand Up @@ -2382,6 +2386,9 @@ inherit .return_or_yield
parameters:(_)@call_sig
body:(_)@body)@fun {

node @call_sig.arguments_pop
node @call_sig.arguments_push

; scope flows across the decl
edge @fun.after_scope -> @fun.before_scope

Expand Down

0 comments on commit ad5d5fc

Please sign in to comment.