icerpc / slicec

The Slice compiler library
Apache License 2.0
13 stars 5 forks source link

A Syntax Error in 1 File Causes us to Skip Parsing Other Files #559

Closed InsertCreativityHere closed 1 year ago

InsertCreativityHere commented 1 year ago

Currently, parsing a file has 2 steps:

However, since the diagnostic reporter is shared among all files, if a file emits an error, parsing future files will exit early. Preprocessing will always run, then it will see an error occurred, and skip the parsing phase; even though the error was caused by another file!