go/ast.CommentGroup.Pos (method)
23 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#L316: if body.Pos() <= c.Pos() && c.End() <= body.End() {
example.go#L371: return comments[i].Pos() < comments[j].Pos()
example.go#L425: Rbrace: last.Pos(),
example.go#L440: if cg.Pos() < pos {
go/printer
printer.go#L1094: beg = doc.Pos()
printer.go#L1108: for j < len(comments) && comments[j].Pos() < end {
golang.org/x/pkgsite/internal/godoc/internal/doc
example.go#L250: if body.Pos() <= c.Pos() && c.End() <= body.End() {
example.go#L292: return comments[i].Pos() < comments[j].Pos()
example.go#L542: Rbrace: last.Pos(),
example.go#L557: if cg.Pos() < pos {
![]() |
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. |