Removed Location's dependency on Error
This commit is contained in:
parent
cce841f48e
commit
abc6e44fb2
@ -9,11 +9,6 @@ type Location struct {
|
|||||||
width int
|
width int
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewError creates a new error at this location.
|
|
||||||
func (location Location) NewError (message string, kind ErrorKind) (err Error) {
|
|
||||||
return NewError(location, message, kind)
|
|
||||||
}
|
|
||||||
|
|
||||||
// File returns the file the location is in
|
// File returns the file the location is in
|
||||||
func (location Location) File () (file *File) {
|
func (location Location) File () (file *File) {
|
||||||
return location.file
|
return location.file
|
||||||
|
Reference in New Issue
Block a user