
Hello,
I am implementing a language that generates warnings and errors during its semantic analysis phase, and it appears that once an AST node has an error or warning, then it is not possible to log another. My problem is that I have logged a warning for a node, but later analysis would like to also report an error for that same node, but it is not getting logged. This is causing problems for the synthesis phase, which thinks there are only warnings when there is actually a problem that should stop code generation from even starting.
Could you please advise on how best to overcome this?
Many thanks,
Andrew.