const internal/types/errors.InvalidSyntaxTree

38 uses

	internal/types/errors (current package)
		code_string.go#L11: 	_ = x[InvalidSyntaxTree - -1]
		codes.go#L38: 	InvalidSyntaxTree Code = -1

	go/types
		decl.go#L428: 					check.errorf(s, InvalidSyntaxTree, "invalid token %s", d.Tok)
		decl.go#L433: 				check.errorf(s, InvalidSyntaxTree, "unknown ast.Spec node %T", s)
		decl.go#L439: 		check.errorf(d, InvalidSyntaxTree, "unknown ast.Decl node %T", d)
		decl.go#L982: 			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#L1036: 		check.error(e, InvalidSyntaxTree, "invalid use of ...")
		expr.go#L1162: 		check.error(e, InvalidSyntaxTree, "no key:value expected")
		index.go#L320: 		check.error(inNode(e, e.Rbrack), InvalidSyntaxTree, "2nd and 3rd index required in 3-index slice")
		index.go#L375: 		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)
		range.go#L121: 				check.errorf(lhs, InvalidSyntaxTree, "cannot declare %s", lhs)
		resolver.go#L533: 					check.error(ix.orig, InvalidSyntaxTree, "parameterized receiver contains nil parameters")
		signature.go#L390: 				check.softErrorf(t, InvalidSyntaxTree, "invalid use of ...")
		signature.go#L401: 					check.error(name, InvalidSyntaxTree, "anonymous parameter")
		signature.go#L421: 		check.error(list, InvalidSyntaxTree, "list contains both named and anonymous parameters")
		stmt.go#L143: 			check.error(s, InvalidSyntaxTree, "case/communication clause expected")
		stmt.go#L483: 			check.errorf(inNode(s, s.TokPos), InvalidSyntaxTree, "unknown inc/dec operation %s", s.Tok)
		stmt.go#L508: 				check.error(s, InvalidSyntaxTree, "missing lhs in assignment")
		stmt.go#L526: 				check.errorf(atPos(s.TokPos), InvalidSyntaxTree, "unknown assignment operation %s", s.Tok)
		stmt.go#L596: 			check.errorf(s, InvalidSyntaxTree, "branch statement: %s", s.Tok)
		stmt.go#L624: 			check.error(s.Else, InvalidSyntaxTree, "invalid else branch in if statement")
		stmt.go#L658: 				check.error(c, InvalidSyntaxTree, "incorrect expression switch case")
		stmt.go#L695: 				check.error(s, InvalidSyntaxTree, "incorrect form of type switch guard")
		stmt.go#L701: 				check.error(s, InvalidSyntaxTree, "incorrect form of type switch guard")
		stmt.go#L716: 			check.error(s, InvalidSyntaxTree, "incorrect form of type switch guard")
		stmt.go#L723: 			check.error(s, InvalidSyntaxTree, "incorrect form of type switch guard")
		stmt.go#L749: 				check.error(s, InvalidSyntaxTree, "incorrect type switch case")
		stmt.go#L861: 		check.error(s, InvalidSyntaxTree, "invalid statement")
		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#L326: 		check.error(e, InvalidSyntaxTree, "invalid use of ...")
		typexpr.go#L398: 			check.errorf(e, InvalidSyntaxTree, "unknown channel direction %d", e.Dir)