lang: ast, gapi, interfaces, parser: Print line numbers on error
This adds an initial implementation of printing line numbers on type unification errors. It also attempts to print a visual position indicator for most scenarios. This patch was started by Felix Frank and finished by James Shubin. Co-authored-by: Felix Frank <Felix.Frank.de@gmail.com>
This commit is contained in:
@@ -214,6 +214,7 @@ func (obj *GAPI) Cli(info *gapi.Info) (*gapi.Deploy, error) {
|
||||
LexParser: parser.LexParse,
|
||||
Downloader: downloader,
|
||||
StrInterpolater: interpolate.StrInterpolate,
|
||||
SourceFinder: os.ReadFile,
|
||||
//Local: obj.Local, // TODO: do we need this?
|
||||
//World: obj.World, // TODO: do we need this?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user