func sprintf(qf Qualifier, tpSubscripts bool, format string, args ...any) string { … } // check may be nil. func (check *Checker) sprintf(format string, args ...any) string { … } func (check *Checker) trace(pos syntax.Pos, format string, args ...any) { … } // dump is only needed for debugging func (check *Checker) dump(format string, args ...any) { … } func (check *Checker) qualifier(pkg *Package) string { … } // markImports recursively walks pkg and its imports, to record unique import // paths in pkgPathMap. func (check *Checker) markImports(pkg *Package) { … } // stripAnnotations removes internal (type) annotations from s. func stripAnnotations(s string) string { … }