go/token.Pos.IsValid (method)
28 uses
go/token (current package)
position.go#L89: func (p Pos) IsValid() bool {
go/ast
ast.go#L227: if f.Opening.IsValid() {
ast.go#L239: if f.Closing.IsValid() {
ast.go#L493: if x.Func.IsValid() || x.Params == nil { // see issue 3870
ast.go#L807: if s.Rbrace.IsValid() {
ast.go#L992: if d.Rparen.IsValid() {
import.go#L24: if !d.Lparen.IsValid() {
resolve.go#L37: if pos := alt.Pos(); pos.IsValid() {
go/doc
reader.go#L527: if len(d.Specs) == 1 && !d.Lparen.IsValid() {
go/format
format.go#L127: if d.Lparen.IsValid() {
go/parser
parser.go#L131: if pos := alt.Pos(); pos.IsValid() {
parser.go#L245: if p.trace && p.pos.IsValid() {
parser.go#L1270: for p.tok != token.RPAREN && p.tok != token.EOF && !ellipsis.IsValid() {
parser.go#L1884: } else if semi.pos.IsValid() {
go/printer
nodes.go#L444: srcIsOneLine := lbrace.IsValid() && rbrace.IsValid() && p.lineFor(lbrace) == p.lineFor(rbrace)
nodes.go#L892: if x.Ellipsis.IsValid() {
nodes.go#L895: if x.Rparen.IsValid() && p.lineFor(x.Ellipsis) < p.lineFor(x.Rparen) {
nodes.go#L1593: if s.Assign.IsValid() {
nodes.go#L1608: if d.Lparen.IsValid() || len(d.Specs) > 1 {
nodes.go#L1684: if from := n.Pos(); from.IsValid() {
nodes.go#L1685: if to := n.End(); to.IsValid() {
nodes.go#L1696: if pos1.IsValid() && pos2.IsValid() && p.lineFor(pos1) != p.lineFor(pos2) {
nodes.go#L1762: if startPos.IsValid() && p.pos.IsValid() && p.posFor(startPos).Line == p.pos.Line {
printer.go#L963: if x.IsValid() {
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
synopsis.go#L70: if n.Assign.IsValid() {
golang.org/x/pkgsite/internal/godoc/internal/doc
reader.go#L531: if len(d.Specs) == 1 && !d.Lparen.IsValid() {
![]() |
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. |