Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for fakeImportC (0.21 sec)

  1. src/cmd/compile/internal/types2/api.go

    	// result in an error.
    	GoVersion string
    
    	// If IgnoreFuncBodies is set, function bodies are not
    	// type-checked.
    	IgnoreFuncBodies bool
    
    	// If FakeImportC is set, `import "C"` (for packages requiring Cgo)
    	// declares an empty "C" package and errors are omitted for qualified
    	// identifiers referring to package C (which won't find an object).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. src/go/types/api.go

    	//          Do not use casually!
    	FakeImportC bool
    
    	// If go115UsesCgo is set, the type checker expects the
    	// _cgo_gotypes.go file generated by running cmd/cgo to be
    	// provided as a package source file. Qualified identifiers
    	// referring to package C will be resolved to cgo-provided
    	// declarations within _cgo_gotypes.go.
    	//
    	// It is an error to set both FakeImportC and go115UsesCgo.
    	go115UsesCgo bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  3. src/go/types/check_test.go

    	var goexperiment, gotypesalias string
    	flags := flag.NewFlagSet("", flag.PanicOnError)
    	flags.StringVar(&conf.GoVersion, "lang", "", "")
    	flags.StringVar(&goexperiment, "goexperiment", "", "")
    	flags.BoolVar(&conf.FakeImportC, "fakeImportC", false, "")
    	flags.StringVar(&gotypesalias, "gotypesalias", "", "")
    	if err := parseFlags(srcs[0], flags); err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/check_test.go

    	var goexperiment, gotypesalias string
    	flags := flag.NewFlagSet("", flag.PanicOnError)
    	flags.StringVar(&conf.GoVersion, "lang", "", "")
    	flags.StringVar(&goexperiment, "goexperiment", "", "")
    	flags.BoolVar(&conf.FakeImportC, "fakeImportC", false, "")
    	flags.StringVar(&gotypesalias, "gotypesalias", "", "")
    	if err := parseFlags(srcs[0], flags); err != nil {
    		t.Fatal(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)
  5. src/cmd/compile/internal/types2/resolver.go

    	imp := check.impMap[key]
    	if imp != nil {
    		return imp
    	}
    
    	// 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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  6. src/go/types/resolver.go

    	imp := check.impMap[key]
    	if imp != nil {
    		return imp
    	}
    
    	// no package yet => import it
    	if path == "C" && (check.conf.FakeImportC || check.conf.go115UsesCgo) {
    		if check.conf.FakeImportC && check.conf.go115UsesCgo {
    			check.error(at, BadImportPath, "cannot use FakeImportC and go115UsesCgo together")
    		}
    		imp = NewPackage("C", "C")
    		imp.fake = true // package scope is not populated
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  7. 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)
  8. 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)
Back to top