importPkg refactor: don't depend token.Pos

This commit is contained in:
xushiwei
2024-05-07 17:31:25 +08:00
parent ff36c3dfae
commit bc3dca45e7
5 changed files with 73 additions and 55 deletions

2
c/c.go
View File

@@ -40,7 +40,7 @@ type integer interface {
//go:linkname Str llgo.cstr
func Str(string) *Char
//go:linkname Advance llgo.advance
// llgo:link Advance llgo.advance
func Advance[PtrT any](ptr PtrT, offset int) PtrT { return ptr }
// llgo:link Index llgo.index