You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is a bug or I'm not understanding the documentation. In
go/types/api.go:67:
"If Ident != nil, it is called for each identifier id in the AST"
I have a small program here (not runnable in playground because it depends on go/types):
http://play.golang.org/p/xfQXuF4i7w
It parses and type checks a small program defined as a literal string.
What is the expected output?
I would expect to see Ident called for Close at line 5.
What do you see instead?
Ident called for main at 1:9
Ident called for main at 3:6
Ident called for file at 4:3
Ident called for _ at 4:9
Ident called for os at 4:14
Ident called for Create at 4:17
Ident called for file at 5:3
Ident called for file at 5:3
Which compiler are you using (5g, 6g, 8g, gccgo)?
gc
Which operating system are you using?
OSX 10.8.4
Which version are you using? (run 'go version')
go version go1.1 darwin/amd64
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: