go/token.Pos.IsValid (method, view implemented interface methods)
44 uses
go/token (current package)
position.go#L89: func (p Pos) IsValid() bool {
go/ast
ast.go#L236: if f.Opening.IsValid() {
ast.go#L248: if f.Closing.IsValid() {
ast.go#L507: if x.Func.IsValid() || x.Params == nil { // see issue 3870
ast.go#L823: if s.Rbrace.IsValid() {
ast.go#L1009: if d.Rparen.IsValid() {
import.go#L24: if !d.Lparen.IsValid() {
resolve.go#L37: if pos := alt.Pos(); pos.IsValid() {
go/doc
reader.go#L581: if len(d.Specs) == 1 && !d.Lparen.IsValid() {
go/format
format.go#L127: if d.Lparen.IsValid() {
go/parser
parser.go#L118: if p.trace && p.pos.IsValid() {
parser.go#L578: if !firstComma.IsValid() {
parser.go#L1523: for p.tok != token.RPAREN && p.tok != token.EOF && !ellipsis.IsValid() {
parser.go#L2108: } else if semi.pos.IsValid() {
parser.go#L2672: if len(t.Args) == 1 && !t.Ellipsis.IsValid() && (isTypeLit(t.Args[0]) || p.tok == token.COMMA) {
resolver.go#L144: if pos := alt.Pos(); pos.IsValid() {
go/printer
nodes.go#L483: srcIsOneLine := lbrace.IsValid() && rbrace.IsValid() && p.lineFor(lbrace) == p.lineFor(rbrace)
nodes.go#L953: if x.Ellipsis.IsValid() {
nodes.go#L956: if x.Rparen.IsValid() && p.lineFor(x.Ellipsis) < p.lineFor(x.Rparen) {
nodes.go#L1657: if s.Assign.IsValid() {
nodes.go#L1672: if d.Lparen.IsValid() || len(d.Specs) > 1 {
nodes.go#L1748: if from := n.Pos(); from.IsValid() {
nodes.go#L1749: if to := n.End(); to.IsValid() {
nodes.go#L1760: if pos1.IsValid() && pos2.IsValid() && p.lineFor(pos1) != p.lineFor(pos2) {
nodes.go#L1826: if startPos.IsValid() && p.pos.IsValid() && p.posFor(startPos).Line == p.pos.Line {
printer.go#L968: if x.IsValid() {
go/types
builtins.go#L23: if call.Ellipsis.IsValid() && id != _Append {
builtins.go#L113: if nargs == 2 && call.Ellipsis.IsValid() {
call.go#L136: if call.Ellipsis.IsValid() {
call.go#L313: ddd := call.Ellipsis.IsValid()
decl.go#L15: if pos := obj.Pos(); pos.IsValid() {
decl.go#L252: alias = d.tdecl.Assign.IsValid() // package-level object
decl.go#L547: alias := tdecl.Assign.IsValid()
decl.go#L705: assert(!check.objMap[obj].tdecl.Assign.IsValid()) // don't use TypeName.IsAlias (requires fully set up object)
eval.go#L63: } else if !pos.IsValid() {
exprstring.go#L105: if x.Ellipsis.IsValid() {
labels.go#L111: if varDeclPos.IsValid() {
resolver.go#L128: if pos := file.Pos(); pos.IsValid() {
resolver.go#L601: if !tdecl.Assign.IsValid() {
resolver.go#L642: if check.objMap[tname].tdecl.Assign.IsValid() {
scope.go#L87: if obj := s.Lookup(name); obj != nil && (!pos.IsValid() || obj.scopePos() <= pos) {
typeset.go#L176: if !pos.IsValid() && len(ityp.methods) > 0 {
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)