Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for sawImport (0.08 sec)

  1. src/go/build/deps_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	slices.Sort(all)
    
    	sawImport := map[string]map[string]bool{} // from package => to package => true
    	policy := depsPolicy(t)
    
    	for _, pkg := range all {
    		imports, err := findImports(pkg)
    		if err != nil {
    			t.Error(err)
    			continue
    		}
    		if sawImport[pkg] == nil {
    			sawImport[pkg] = map[string]bool{}
    		}
    		var bad []string
    		for _, imp := range imports {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modindex/scan.go

    	cgoDirectives        string // the #cgo directive lines in the comment on import "C"
    	goBuildConstraint    string
    	plusBuildConstraints []string
    	imports              []rawImport
    	embeds               []embed
    	directives           []build.Directive
    }
    
    type rawImport struct {
    	path     string
    	position token.Position
    }
    
    type embed struct {
    	pattern  string
    	position token.Position
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modindex/index_format.txt

    		goBuildConstraint  - string offset
    		len(plusBuildConstraints) - uint32
    		plusBuildConstraints - [n]uint32 (string offsets)
    		len(imports) uint32
    		for each rawImport:
    			path - string offset
    			position - file, offset, line, column - uint32
    		len(embeds) uint32
    		for each embed:
    			pattern - string offset
    			position - file, offset, line, column - uint32
    		len(directives) uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 13 00:22:50 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modindex/read.go

    	return pos + 4 + n*(4*5)
    }
    
    func (sf *sourceFile) imports() []rawImport {
    	sf.onceReadImports.Do(func() {
    		importsOffset := sf.importsOffset()
    		r := sf.d.readAt(importsOffset)
    		numImports := r.int()
    		ret := make([]rawImport, numImports)
    		for i := 0; i < numImports; i++ {
    			ret[i] = rawImport{r.string(), r.tokpos()}
    		}
    		sf.savedImports = ret
    	})
    	return sf.savedImports
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
Back to top