Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for pkgName (0.13 sec)

  1. src/crypto/purego_test.go

    	allGOARCH := make(map[string]bool)
    	for _, pair := range strings.Split(strings.TrimSpace(string(out)), "\n") {
    		GOARCH := strings.Split(pair, "/")[1]
    		allGOARCH[GOARCH] = true
    	}
    
    	for _, pkgName := range pkgs {
    		if strings.Contains(pkgName, "/boring") {
    			continue
    		}
    
    		for GOARCH := range allGOARCH {
    			context := build.Context{
    				GOOS:      "linux", // darwin has custom assembly
    				GOARCH:    GOARCH,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. src/internal/coverage/encodemeta/encode.go

    		tmp: make([]byte, 0, 256),
    		h:   md5.New(),
    	}
    	x.stab.InitWriter()
    	x.stab.Lookup("")
    	x.pkgpath = x.stab.Lookup(pkgpath)
    	x.pkgname = x.stab.Lookup(pkgname)
    	x.modpath = x.stab.Lookup(modulepath)
    	io.WriteString(x.h, pkgpath)
    	io.WriteString(x.h, pkgname)
    	io.WriteString(x.h, modulepath)
    	return x, nil
    }
    
    func h32(x uint32, h hash.Hash, tmp []byte) {
    	tmp = tmp[:0]
    	tmp = append(tmp, 0, 0, 0, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 17:16:10 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/resolver.go

    				}
    
    				pkgName := NewPkgName(s.Pos(), pkg, name, imp)
    				if s.LocalPkgName != nil {
    					// in a dot-import, the dot represents the package
    					check.recordDef(s.LocalPkgName, pkgName)
    				} else {
    					check.recordImplicit(s, pkgName)
    				}
    
    				if imp.fake {
    					// match 1.17 cmd/compile (not prescribed by spec)
    					pkgName.used = true
    				}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  4. src/go/types/resolver.go

    				}
    
    				pkgName := NewPkgName(d.spec.Pos(), pkg, name, imp)
    				if d.spec.Name != nil {
    					// in a dot-import, the dot represents the package
    					check.recordDef(d.spec.Name, pkgName)
    				} else {
    					check.recordImplicit(d.spec, pkgName)
    				}
    
    				if imp.fake {
    					// match 1.17 cmd/compile (not prescribed by spec)
    					pkgName.used = true
    				}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  5. src/go/types/object.go

    	}
    	if !ea {
    		return a.pkg.path < b.pkg.path
    	}
    
    	return false
    }
    
    // A PkgName represents an imported Go package.
    // PkgNames don't have a type.
    type PkgName struct {
    	object
    	imported *Package
    	used     bool // set if the package was used
    }
    
    // NewPkgName returns a new PkgName object representing an imported package.
    // The remaining arguments set the attributes found with all Objects.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  6. src/go/internal/gccgoimporter/parser.go

    		p.expectEOL()
    
    	case "import":
    		p.next()
    		pkgname := p.parseUnquotedString()
    		pkgpath := p.parseUnquotedString()
    		p.getPkg(pkgpath, pkgname)
    		p.parseString()
    		p.expectEOL()
    
    	case "indirectimport":
    		p.next()
    		pkgname := p.parseUnquotedString()
    		pkgpath := p.parseUnquotedString()
    		p.getPkg(pkgpath, pkgname)
    		p.expectEOL()
    
    	case "types":
    		p.next()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/check_test.go

    		t.Fatal("no source files")
    	}
    
    	// parse files
    	files, errlist := parseFiles(t, filenames, srcs, 0)
    	pkgName := "<no package>"
    	if len(files) > 0 {
    		pkgName = files[0].PkgName.Value
    	}
    	listErrors := manual && !*verifyErrors
    	if listErrors && len(errlist) > 0 {
    		t.Errorf("--- %s:", pkgName)
    		for _, err := range errlist {
    			t.Error(err)
    		}
    	}
    
    	// set up typechecker
    	var conf Config
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/object.go

    	}
    	if !ea {
    		return a.pkg.path < b.pkg.path
    	}
    
    	return false
    }
    
    // A PkgName represents an imported Go package.
    // PkgNames don't have a type.
    type PkgName struct {
    	object
    	imported *Package
    	used     bool // set if the package was used
    }
    
    // NewPkgName returns a new PkgName object representing an imported package.
    // The remaining arguments set the attributes found with all Objects.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  9. src/internal/reflectlite/reflect_mirror_test.go

    				}
    			}
    		}
    	}
    	return v
    }
    
    func loadTypes(path, pkgName string, v visitor) {
    	fset := token.NewFileSet()
    
    	filter := func(fi fs.FileInfo) bool {
    		return strings.HasSuffix(fi.Name(), ".go")
    	}
    	pkgs, err := parser.ParseDir(fset, path, filter, 0)
    	if err != nil {
    		panic(err)
    	}
    
    	pkg := pkgs[pkgName]
    
    	for _, f := range pkg.Files {
    		ast.Walk(v, f)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 21:11:15 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. src/go/types/api.go

    //
    // Precondition: the Defs and Implicts maps are populated.
    func (info *Info) PkgNameOf(imp *ast.ImportSpec) *PkgName {
    	var obj Object
    	if imp.Name != nil {
    		obj = info.Defs[imp.Name]
    	} else {
    		obj = info.Implicits[imp]
    	}
    	pkgname, _ := obj.(*PkgName)
    	return pkgname
    }
    
    // TypeAndValue reports the type and value (for constants)
    // of the corresponding expression.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
Back to top