const internal/types/errors.InvalidSyntaxTree
35 uses
internal/types/errors (current package)
code_string.go#L11: _ = x[InvalidSyntaxTree - -1]
codes.go#L38: InvalidSyntaxTree Code = -1
go/types
decl.go#L417: check.errorf(s, InvalidSyntaxTree, "invalid token %s", d.Tok)
decl.go#L422: check.errorf(s, InvalidSyntaxTree, "unknown ast.Spec node %T", s)
decl.go#L428: check.errorf(d, InvalidSyntaxTree, "unknown ast.Decl node %T", d)
decl.go#L971: check.errorf(d.node(), InvalidSyntaxTree, "unknown ast.Decl node %T", d.node())
errors.go#L172: if code == InvalidSyntaxTree {
expr.go#L80: check.errorf(x, InvalidSyntaxTree, "unknown operator %s", op)
expr.go#L1137: check.error(e, InvalidSyntaxTree, "no key:value expected")
index.go#L280: check.error(inNode(e, e.Rbrack), InvalidSyntaxTree, "2nd and 3rd index required in 3-index slice")
index.go#L335: check.errorf(expr.orig, InvalidSyntaxTree, "index expression %v with 0 indices", expr)
interface.go#L186: check.errorf(f.Type, InvalidSyntaxTree, "%s is not a method signature", typ)
interface.go#L197: check.error(at, InvalidSyntaxTree, "methods cannot have type parameters")
labels.go#L220: check.errorf(s, InvalidSyntaxTree, "branch statement: %s %s", s.Tok, name)
literals.go#L106: check.errorf(e, InvalidSyntaxTree, "invalid function literal %v", e)
resolver.go#L535: check.error(ix.orig, InvalidSyntaxTree, "parameterized receiver contains nil parameters")
signature.go#L378: check.error(name, InvalidSyntaxTree, "anonymous parameter")
signature.go#L398: check.error(list, InvalidSyntaxTree, "list contains both named and anonymous parameters")
stmt.go#L141: check.error(s, InvalidSyntaxTree, "case/communication clause expected")
stmt.go#L493: check.errorf(inNode(s, s.TokPos), InvalidSyntaxTree, "unknown inc/dec operation %s", s.Tok)
stmt.go#L518: check.error(s, InvalidSyntaxTree, "missing lhs in assignment")
stmt.go#L536: check.errorf(atPos(s.TokPos), InvalidSyntaxTree, "unknown assignment operation %s", s.Tok)
stmt.go#L606: check.errorf(s, InvalidSyntaxTree, "branch statement: %s", s.Tok)
stmt.go#L634: check.error(s.Else, InvalidSyntaxTree, "invalid else branch in if statement")
stmt.go#L668: check.error(c, InvalidSyntaxTree, "incorrect expression switch case")
stmt.go#L705: check.error(s, InvalidSyntaxTree, "incorrect form of type switch guard")
stmt.go#L711: check.error(s, InvalidSyntaxTree, "incorrect form of type switch guard")
stmt.go#L726: check.error(s, InvalidSyntaxTree, "incorrect form of type switch guard")
stmt.go#L733: check.error(s, InvalidSyntaxTree, "incorrect form of type switch guard")
stmt.go#L759: check.error(s, InvalidSyntaxTree, "incorrect type switch case")
stmt.go#L871: check.error(s, InvalidSyntaxTree, "invalid statement")
stmt.go#L948: check.errorf(lhs, InvalidSyntaxTree, "cannot declare %s", lhs)
struct.go#L129: check.errorf(f.Type, InvalidSyntaxTree, "embedded field type %s has no name", f.Type)
struct.go#L218: check.errorf(t, InvalidSyntaxTree, "incorrect tag syntax: %q", t.Value)
typexpr.go#L400: check.errorf(e, InvalidSyntaxTree, "unknown channel direction %d", e.Dir)