go/parser.parser.safePos (method)
7 uses
go/parser (current package)
parser.go#L533: func (p *parser) safePos(pos token.Pos) (res token.Pos) {
parser.go#L737: typ = &ast.BadExpr{From: typ.Pos(), To: p.safePos(typ.End())}
parser.go#L1402: x = &ast.BadExpr{From: x.Pos(), To: p.safePos(x.End())}
parser.go#L1464: x = &ast.BadExpr{From: x.Pos(), To: p.safePos(x.End())}
parser.go#L1754: p.error(p.safePos(x.End()), fmt.Sprintf("function must be invoked in %s statement", callType))
parser.go#L1835: return &ast.BadExpr{From: s.Pos(), To: p.safePos(s.End())}
parser.go#L2190: return &ast.BadStmt{From: pos, To: p.safePos(body.End())}
 |
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. |