Parser now sets type member location
This commit is contained in:
@@ -25,6 +25,10 @@ func NewError (
|
||||
) (
|
||||
err Error,
|
||||
) {
|
||||
if location.File() == nil {
|
||||
panic("cannot create new Error in a blank file")
|
||||
}
|
||||
|
||||
return Error {
|
||||
Location: location,
|
||||
message: message,
|
||||
|
||||
Reference in New Issue
Block a user