Skip to content

Commit

Permalink
skip _search_instantiations for non-functions
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed May 31, 2024
1 parent c9acf0c commit 0a9b6e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/chpl-language-server/src/chpl-language-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ def _search_instantiations(

sig = candidate.function()
fn = sig.ast()
if not fn:
if not fn or not isinstance(fn, chapel.Function):
continue

# Even if we don't descend into it (and even if it's not an
Expand Down

0 comments on commit 0a9b6e5

Please sign in to comment.