Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for mustTypecheck (0.34 sec)

  1. src/go/types/api_test.go

    	if conf == nil {
    		conf = &Config{
    			Error:    func(err error) {}, // collect all errors
    			Importer: importer.Default(),
    		}
    	}
    	return conf.Check(f.Name.Name, fset, []*ast.File{f}, info)
    }
    
    func mustTypecheck(src string, conf *Config, info *Info) *Package {
    	pkg, err := typecheck(src, conf, info)
    	if err != nil {
    		panic(err) // so we don't need to pass *testing.T
    	}
    	return pkg
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/api_test.go

    	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 {
    		panic(err) // so we don't need to pass *testing.T
    	}
    	return pkg
    }
    
    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