go/token.File.infos (field)
10 uses
go/token (current package)
position.go#L108: infos []lineInfo
position.go#L258: if i := len(f.infos); i == 0 || f.infos[i-1].Offset < offset && offset < f.size {
position.go#L259: f.infos = append(f.infos, lineInfo{offset, filename, line, column})
position.go#L308: if adjusted && len(f.infos) > 0 {
position.go#L310: if i := searchLineInfos(f.infos, offset); i >= 0 {
position.go#L311: alt := &f.infos[i]
serialize.go#L39: infos: f.Infos,
serialize.go#L63: Infos: append([]lineInfo(nil), f.infos...),
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |