From 0a9b6e553fd6aff179b5e5933400be13b26684bd Mon Sep 17 00:00:00 2001 From: Jade Abraham Date: Fri, 31 May 2024 16:44:06 -0700 Subject: [PATCH] skip _search_instantiations for non-functions Signed-off-by: Jade Abraham --- tools/chpl-language-server/src/chpl-language-server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/chpl-language-server/src/chpl-language-server.py b/tools/chpl-language-server/src/chpl-language-server.py index f5f2f335089f..078553b575ad 100755 --- a/tools/chpl-language-server/src/chpl-language-server.py +++ b/tools/chpl-language-server/src/chpl-language-server.py @@ -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