Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for defaultImporter (0.15 sec)

  1. src/cmd/compile/internal/types2/api_test.go

    }
    
    func typecheck(src string, conf *Config, info *Info) (*Package, error) {
    	f := mustParse(src)
    	if conf == nil {
    		conf = &Config{
    			Error:    func(err error) {}, // collect all errors
    			Importer: defaultImporter(),
    		}
    	}
    	return conf.Check(f.PkgName.Value, []*syntax.File{f}, info)
    }
    
    func mustTypecheck(src string, conf *Config, info *Info) *Package {
    	pkg, err := typecheck(src, conf, info)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
Back to top