-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
The class DartCompilationError is intended to carry along information about both which source file contains the error and the location in the file where the error occurs. These pieces of information are sometimes missing, which prevents the editor from being able to navigate to the source of the error, reducing the usability of the editor. (I believe it also reduces the usability of the command-line version by making it impossible to report those pieces of information.)
My recommendation is that we remove the constructors that do not take both a source and a location and that we add tests to ensure that these arguments are non-null. This will, of course, require updating all existing error creation sites to ensure that this information is passed along.