- Sort Score
- Result 10 results
- Languages All
Results 11 - 14 of 14 for FakeImportC (0.17 sec)
-
src/go/types/gotype.go
return parseFiles("", args) } func checkPkgFiles(files []*ast.File) { type bailout struct{} // if checkPkgFiles is called multiple times, set up conf only once conf := types.Config{ FakeImportC: true, Error: func(err error) { if !*allErrors && errorCount >= 10 { panic(bailout{}) } report(err) }, Importer: importer.ForCompiler(fset, *compiler, nil),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 18 17:59:44 UTC 2022 - 8.3K bytes - Viewed (0) -
src/go/internal/srcimporter/srcimporter.go
} }, Importer: p, Sizes: p.sizes, } if len(bp.CgoFiles) > 0 { if p.ctxt.OpenFile != nil { // cgo, gcc, pkg-config, etc. do not support // build.Context's VFS. conf.FakeImportC = true } else { setUsesCgo(&conf) file, err := p.cgo(bp) if err != nil { return nil, fmt.Errorf("error processing cgo for package %q: %w", bp.ImportPath, err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 23 18:54:32 UTC 2022 - 8.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/cgocall/cgocall.go
} cgoFiles = append(cgoFiles, f) } if cgoFiles == nil { return nil, nil, nil // nothing to do (can't happen?) } // Type-check the synthetic files. tc := &types.Config{ FakeImportC: true, Importer: importerFunc(func(path string) (*types.Package, error) { return importMap[path], nil }), Sizes: sizes, Error: func(error) {}, // ignore errors (e.g. unused import) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 11.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"Complex128", Const, 5}, {"Complex64", Const, 5}, {"Config", Type, 5}, {"Config.Context", Field, 18}, {"Config.DisableUnusedImportCheck", Field, 5}, {"Config.Error", Field, 5}, {"Config.FakeImportC", Field, 5}, {"Config.GoVersion", Field, 18}, {"Config.IgnoreFuncBodies", Field, 5}, {"Config.Importer", Field, 5}, {"Config.Sizes", Field, 5}, {"Const", Type, 5}, {"Context", Type, 18},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)