go/ast.CommentGroup.Pos (method, view implemented interface methods)
18 uses
go/ast (current package)
ast.go#L80: func (g *CommentGroup) Pos() token.Pos { return g.List[0].Pos() }
commentmap.go#L17: func (a byPos) Less(i, j int) bool { return a[i].Pos() < a[j].Pos() }
commentmap.go#L94: r.pos = r.fset.Position(r.comment.Pos())
commentmap.go#L185: if top := stack.pop(r.comment.Pos()); top != nil {
import.go#L134: if beg <= g.Pos() {
import.go#L154: for specIndex+1 < len(specs) && pos[specIndex+1].Start <= g.Pos() {
import.go#L159: if specIndex == 0 && pos[specIndex].Start > g.Pos() {
import.go#L162: lineAt(fset, pos[specIndex].Start)+1 == lineAt(fset, g.Pos()) {
import.go#L226: return comments[i].Pos() < comments[j].Pos()
go/doc
example.go#L319: if body.Pos() <= c.Pos() && c.End() <= body.End() {
example.go#L374: return comments[i].Pos() < comments[j].Pos()
example.go#L428: Rbrace: last.Pos(),
example.go#L443: if cg.Pos() < pos {
go/printer
printer.go#L1099: beg = doc.Pos()
printer.go#L1113: for j < len(comments) && comments[j].Pos() < end {
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)