Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for ImportMode (0.2 sec)

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

    }
    
    func (m *gcimports) Import(path string) (*types2.Package, error) {
    	return m.ImportFrom(path, "" /* no vendoring */, 0)
    }
    
    func (m *gcimports) ImportFrom(path, srcDir string, mode types2.ImportMode) (*types2.Package, error) {
    	if mode != 0 {
    		panic("mode must be 0")
    	}
    	return gcimporter.Import(m.packages, path, srcDir, m.lookup)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 25 19:24:25 UTC 2021
    - 913 bytes
    - Viewed (0)
  2. src/go/importer/importer.go

    	lookup   Lookup
    }
    
    func (m *gcimports) Import(path string) (*types.Package, error) {
    	return m.ImportFrom(path, "" /* no vendoring */, 0)
    }
    
    func (m *gcimports) ImportFrom(path, srcDir string, mode types.ImportMode) (*types.Package, error) {
    	if mode != 0 {
    		panic("mode must be 0")
    	}
    	return gcimporter.Import(m.fset, m.packages, path, srcDir, m.lookup)
    }
    
    // gccgo importer
    
    type gccgoimports struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. api/go1.6.txt

    pkg go/build, const IgnoreVendor ImportMode
    pkg go/build, type Package struct, InvalidGoFiles []string
    pkg go/constant, func ToComplex(Value) Value
    pkg go/constant, func ToFloat(Value) Value
    pkg go/constant, func ToInt(Value) Value
    pkg go/constant, type Value interface, ExactString() string
    pkg go/types, method (*Package) SetName(string)
    pkg go/types, type ImportMode int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 13 23:40:13 UTC 2016
    - 12.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/api.go

    	// The semantics is like for ImporterFrom.ImportFrom except that
    	// dir and mode are ignored (since they are not present).
    	Import(path string) (*Package, error)
    }
    
    // ImportMode is reserved for future use.
    type ImportMode int
    
    // An ImporterFrom resolves import paths to packages; it
    // supports vendoring per https://golang.org/s/go15vendor.
    // Use go/importer to obtain an ImporterFrom implementation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/resolver_test.go

    	imported map[string]bool
    }
    
    func (imp *resolveTestImporter) Import(string) (*Package, error) {
    	panic("should not be called")
    }
    
    func (imp *resolveTestImporter) ImportFrom(path, srcDir string, mode ImportMode) (*Package, error) {
    	if mode != 0 {
    		panic("mode must be 0")
    	}
    	if imp.importer == nil {
    		imp.importer = defaultImporter().(ImporterFrom)
    		imp.imported = make(map[string]bool)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  6. src/go/types/resolver_test.go

    	imported map[string]bool
    }
    
    func (imp *resolveTestImporter) Import(string) (*Package, error) {
    	panic("should not be called")
    }
    
    func (imp *resolveTestImporter) ImportFrom(path, srcDir string, mode ImportMode) (*Package, error) {
    	if mode != 0 {
    		panic("mode must be 0")
    	}
    	if imp.importer == nil {
    		imp.importer = importer.Default().(ImporterFrom)
    		imp.imported = make(map[string]bool)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. src/go/types/api.go

    	// The semantics is like for ImporterFrom.ImportFrom except that
    	// dir and mode are ignored (since they are not present).
    	Import(path string) (*Package, error)
    }
    
    // ImportMode is reserved for future use.
    type ImportMode int
    
    // An ImporterFrom resolves import paths to packages; it
    // supports vendoring per https://golang.org/s/go15vendor.
    // Use go/importer to obtain an ImporterFrom implementation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  8. src/go/build/build.go

    	if s == "" {
    		return def
    	}
    	return s
    }
    
    // An ImportMode controls the behavior of the Import method.
    type ImportMode uint
    
    const (
    	// If FindOnly is set, Import stops after locating the directory
    	// that should contain the sources for a package. It does not
    	// read any files in the directory.
    	FindOnly ImportMode = 1 << iota
    
    	// If AllowBinary is set, Import can be satisfied by a compiled
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  9. src/go/internal/srcimporter/srcimporter.go

    // type checker may not be able to determine all exported entities (e.g. due to cgo dependencies).
    func (p *Importer) ImportFrom(path, srcDir string, mode types.ImportMode) (*types.Package, error) {
    	if mode != 0 {
    		panic("non-zero import mode")
    	}
    
    	if abs, err := p.absPath(srcDir); err == nil { // see issue #14282
    		srcDir = abs
    	}
    	bp, err := p.ctxt.Import(path, srcDir, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 18:54:32 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/stdlib_test.go

    	pkg  *Package
    	err  error
    }
    
    func (c *stdlibChecker) Import(path string) (*Package, error) {
    	panic("unimplemented: use ImportFrom")
    }
    
    func (c *stdlibChecker) ImportFrom(path, dir string, _ ImportMode) (*Package, error) {
    	if path == "unsafe" {
    		// unsafe cannot be type checked normally.
    		return Unsafe, nil
    	}
    
    	p, err := build.Default.Import(path, dir, build.FindOnly)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:18:33 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top