Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typesutil: Check support conf.Error #1514

Merged
merged 1 commit into from
Nov 2, 2023
Merged

Conversation

xushiwei
Copy link
Member

@xushiwei xushiwei commented Nov 2, 2023

No description provided.

@xushiwei xushiwei merged commit 0216d0a into goplus:main Nov 2, 2023
12 checks passed
func convErr(fset *token.FileSet, e error) (*types.Error, bool) {
switch v := e.(type) {
case *gox.CodeError:
return &types.Error{Fset: fset, Pos: v.Pos, Msg: v.Msg}, true
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我这里看 types.ErrorPos 类型是 token.Pos。而 gox.CodeErrorPos*token.Position,这里能直接赋值(Pos: v.Pos)的?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants