record constructor calls in calltree

This commit is contained in:
Dmitry Vasilev
2022-12-16 18:23:55 +08:00
parent f2c906687e
commit f062056ad1
5 changed files with 85 additions and 27 deletions

View File

@@ -750,7 +750,7 @@ const select_return_value = state => {
} else {
result_node = find_node(frame, n =>
n.type == 'function_call'
(n.type == 'function_call' || n.type == 'new')
&& n.result != null
&& n.result.call.id == state.current_calltree_node.id
)
@@ -790,7 +790,7 @@ const select_arguments = (state, with_focus = true) => {
} else {
const call = find_node(frame, n =>
n.type == 'function_call'
(n.type == 'function_call' || n.type == 'new')
&& n.result != null
&& n.result.call.id == state.current_calltree_node.id
)