Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for FakeImportC (0.24 sec)

  1. 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)
  2. 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)
  3. 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)
  4. api/go1.5.txt

    pkg go/types, type Config struct
    pkg go/types, type Config struct, DisableUnusedImportCheck bool
    pkg go/types, type Config struct, Error func(error)
    pkg go/types, type Config struct, FakeImportC bool
    pkg go/types, type Config struct, IgnoreFuncBodies bool
    pkg go/types, type Config struct, Importer Importer
    pkg go/types, type Config struct, Sizes Sizes
    pkg go/types, type Const struct
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  5. 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)
Back to top