alephium / ralph-lsp

Ralph language server
7 stars 1 forks source link

Standardise `Warning` management #325

Closed simerplaha closed 3 weeks ago

simerplaha commented 3 weeks ago

Issue (also see the attached referenced issue below)

Warnings returned by ralphc have the following conditions:

Solution

The above conditions are not as straightforward to manage. Therefore, this PR transforms the compiler output so that the above conditions are applied in the compiler-access module within RalphCompilerAccess.

Standardise

In presentation-compiler, there will only be one way to process Warnings, i.e., ALL Warnings must have their SourceIndex set and they should be returned as a single function output when contracts are compiled via compileContracts.