Ai
2 Star 0 Fork 0

mirrors_chai2010/tinygo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
errors.go 325 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ayke van Laethem 提交于 2019-04-21 22:20 +08:00 . all: improve compiler error handling
package compiler
import (
"go/token"
"go/types"
)
func (c *Compiler) makeError(pos token.Pos, msg string) types.Error {
return types.Error{
Fset: c.ir.Program.Fset,
Pos: pos,
Msg: msg,
}
}
func (c *Compiler) addError(pos token.Pos, msg string) {
c.diagnostics = append(c.diagnostics, c.makeError(pos, msg))
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_chai2010/tinygo.git
git@gitee.com:mirrors_chai2010/tinygo.git
mirrors_chai2010
tinygo
tinygo
master

搜索帮助