Skip to content

Commit

Permalink
handle named actuals
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed Apr 23, 2024
1 parent 395f9ef commit 86cec81
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/chpl-language-server/src/symbol_signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,13 @@ def _fncall_to_string(call: chapel.FnCall) -> List[Component]:
for a in call.actuals():
comps.append(_wrap_str(sep))
sep = ", "
comps.extend(_node_to_string(a))
if isinstance(a, tuple):
comps.append(_wrap_str(a[0]))
comps.append(_wrap_str(" = "))
comps.extend(_node_to_string(a[1]))
else:
assert(isinstance(a, chapel.AstNode))
comps.extend(_node_to_string(a))
comps.append(_wrap_str("]" if call.used_square_brackets() else ")"))

return comps

0 comments on commit 86cec81

Please sign in to comment.