- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 80 for conf (0.03 sec)
-
src/cmd/compile/internal/types2/issues_test.go
t.Fatal("expected syntax error") } var conf Config conf.Check(f.PkgName.Value, []*syntax.File{f}, nil) // must not panic } func TestIssue61938(t *testing.T) { const src = ` package p func f[T any]() {} func _() { f() } ` // no error handler provided (this issue) var conf Config typecheck(src, &conf, nil) // must not panic // with error handler (sanity check)
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/const.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 7.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/export_test.go
"arm64": obj.Linknew(&arm64.Linkarm64), } func testConfig(tb testing.TB) *Conf { return testConfigArch(tb, "amd64") } func testConfigS390X(tb testing.TB) *Conf { return testConfigArch(tb, "s390x") } func testConfigARM64(tb testing.TB) *Conf { return testConfigArch(tb, "arm64") } func testConfigArch(tb testing.TB, arch string) *Conf { ctxt, ok := testCtxts[arch] if !ok { tb.Fatalf("unknown arch %s", arch) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 21:19:39 UTC 2024 - 3.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/check.go
// mutate *pkg. // // (previously, pkg.goVersion was mutated here: go.dev/issue/61212) return &Checker{ conf: conf, ctxt: conf.Context, pkg: pkg, Info: info, version: asGoVersion(conf.GoVersion), objMap: make(map[Object]*declInfo), impMap: make(map[importKey]*Package), } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 23.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/errors.go
if code == InvalidSyntaxTree { msg = "invalid syntax tree: " + msg } // If we have a URL for error codes, add a link to the first line. if check.conf.ErrorURL != "" { url := fmt.Sprintf(check.conf.ErrorURL, code) if i := strings.Index(msg, "\n"); i >= 0 { msg = msg[:i] + url + msg[i:] } else { msg += url } } } else { // Indent sub-error.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 6.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/check_test.go
} // 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) } // apply custom configuration for _, opt := range opts { opt(&conf) }
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
} return f } 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)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 93.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/sizes.go
// stdSizes is used if Config.Sizes == nil. var stdSizes = SizesFor("gc", "amd64") func (conf *Config) alignof(T Type) int64 { f := stdSizes.Alignof if conf.Sizes != nil { f = conf.Sizes.Alignof } if a := f(T); a >= 1 { return a } panic("implementation of alignof returned an alignment < 1") } func (conf *Config) offsetsof(T *Struct) []int64 { var offsets []int64 if T.NumFields() > 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 8.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/resolver.go
} // no package yet => import it if path == "C" && (check.conf.FakeImportC || check.conf.go115UsesCgo) { if check.conf.FakeImportC && check.conf.go115UsesCgo { check.error(pos, BadImportPath, "cannot use FakeImportC and go115UsesCgo together") } imp = NewPackage("C", "C") imp.fake = true // package scope is not populated imp.cgo = check.conf.go115UsesCgo } else { // ordinary import var err error
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 26.3K bytes - Viewed (0) -
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, ".") if len(names) != 1 && len(names) != 2 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 5.2K bytes - Viewed (0)