Skip to content

Associate source and location information with errors #82

@bwilkerson

Description

@bwilkerson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions