- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for defaultImporter (0.16 sec)
-
src/cmd/compile/internal/types2/object_test.go
testenv.MustHaveGoBuild(t) for i, test := range testObjects { t.Run(fmt.Sprint(i), func(t *testing.T) { src := "package p; " + test.src conf := Config{Error: func(error) {}, Importer: defaultImporter(), EnableAlias: test.alias} pkg, err := typecheck(src, &conf, nil) if err != nil { t.Fatalf("%s: %s", src, err) } names := strings.Split(test.obj, ".")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 5.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/issues_test.go
`struct { *Missing }`, `struct { unsafe.Pointer }`, `struct { P }`, `struct { *I }`, `struct { a int; b Missing; *Missing }`, } { f := mustParse(prefix + src) conf := Config{Importer: defaultImporter(), Error: func(err error) {}} info := &Info{Types: make(map[syntax.Expr]TypeAndValue)} _, err := conf.Check(f.PkgName.Value, []*syntax.File{f}, info) if err != nil { if _, ok := err.(Error); !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/stdlib_test.go
"errors" "fmt" "go/build" "internal/testenv" "os" "path/filepath" "runtime" "strings" "sync" "testing" "time" . "cmd/compile/internal/types2" ) var stdLibImporter = defaultImporter() func TestStdlib(t *testing.T) { if testing.Short() { t.Skip("skipping in short mode") } testenv.MustHaveGoBuild(t) // Collect non-test files. dirFiles := make(map[string][]string)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:18:33 UTC 2024 - 13.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/check_test.go
t.Errorf("--- %s:", pkgName) for _, err := range errlist { t.Error(err) } } // set up typechecker var conf Config conf.Trace = manual && testing.Verbose() conf.Importer = defaultImporter() conf.Error = func(err error) { if *haltOnError { defer panic(err) } if listErrors { t.Error(err) return } errlist = append(errlist, err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 13.8K bytes - Viewed (0) -
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)