github.com/aykevl/tinygo@v0.5.0/compiler/errors.go (about) 1 package compiler 2 3 import ( 4 "go/token" 5 "go/types" 6 ) 7 8 func (c *Compiler) makeError(pos token.Pos, msg string) types.Error { 9 return types.Error{ 10 Fset: c.ir.Program.Fset, 11 Pos: pos, 12 Msg: msg, 13 } 14 }