Update compiler diagnostics to follow the spec.

This commit is contained in:
Michele Campeotto 2025-03-24 08:55:39 +01:00 committed by Phil Hagelberg
parent f396450293
commit 96aef99728

View File

@ -305,8 +305,7 @@ identifiers are declared / referenced in which places."
{:range range
:message msg
:severity message.severity.ERROR
:code 201
:codeDescription "compiler error"}))
:code :compiler-error}))
(if (attempt-to-recover! msg ast)
true
(do
@ -320,8 +319,7 @@ identifiers are declared / referenced in which places."
{:range range
:message msg
:severity message.severity.ERROR
:code 101
:codeDescription "parse error"}))
:code :parse-error}))
(if (attempt-to-recover! msg)
true
(do