Rewrite error handling logic
This commit is contained in:
611
parser/parser.go
611
parser/parser.go
File diff suppressed because it is too large
Load Diff
@@ -41,6 +41,7 @@ func toNodeSlice(v any) []ast.Node {
|
||||
|
||||
func getPos(c *current) ast.Position {
|
||||
return ast.Position{
|
||||
Name: c.globalStore["name"].(string),
|
||||
Line: c.pos.line,
|
||||
Col: c.pos.col,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user