diff --git a/rascal-lsp/src/main/rascal/demo/lang/pico/LanguageServer.rsc b/rascal-lsp/src/main/rascal/demo/lang/pico/LanguageServer.rsc index 14d934b4..c58a4809 100644 --- a/rascal-lsp/src/main/rascal/demo/lang/pico/LanguageServer.rsc +++ b/rascal-lsp/src/main/rascal/demo/lang/pico/LanguageServer.rsc @@ -95,7 +95,7 @@ Summary picoSummaryService(loc l, start[Program] input, PicoSummarizerMode mode) Summary s = summary(l); // definitions of variables - rel[str, loc] defs = {<"", var.src> | /IdType var := input}; + rel[str, loc] defs = {<"", var.src> | /IdType var := input, !hasErrors(var)}; // uses of identifiers rel[loc, str] uses = {"> | /Id id := input};