Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 73 for pkgName (0.39 sec)

  1. src/cmd/covdata/dump.go

    	// pkgpaths records all package import paths encountered while
    	// visiting coverage data files (used to implement the "pkglist"
    	// subcommand).
    	pkgpaths map[string]struct{}
    
    	// Current package name and import path.
    	pkgName       string
    	pkgImportPath string
    
    	// Module path for current package (may be empty).
    	modulePath string
    
    	// Dump subcommand (ex: "textfmt", "debugdump", etc).
    	cmd string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:57 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/api.go

    //
    // Precondition: the Defs and Implicts maps are populated.
    func (info *Info) PkgNameOf(imp *syntax.ImportDecl) *PkgName {
    	var obj Object
    	if imp.LocalPkgName != nil {
    		obj = info.Defs[imp.LocalPkgName]
    	} 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: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/lostcancel/lostcancel.go

    		return false
    	}
    	switch sel.Sel.Name {
    	case "WithCancel", "WithTimeout", "WithDeadline":
    	default:
    		return false
    	}
    	if x, ok := sel.X.(*ast.Ident); ok {
    		if pkgname, ok := info.Uses[x].(*types.PkgName); ok {
    			return pkgname.Imported().Path() == contextPackage
    		}
    		// Import failed, so we can't check package path.
    		// Just check the local package name (heuristic).
    		return x.Name == "context"
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/typexpr.go

    	// (This code is only needed for dot-imports. Without them,
    	// we only have to mark variables, see *Var case below).
    	if pkgName := check.dotImportMap[dotImportKey{scope, obj.Name()}]; pkgName != nil {
    		pkgName.used = true
    	}
    
    	switch obj := obj.(type) {
    	case *PkgName:
    		check.errorf(e, InvalidPkgUse, "use of package %s not in selector", obj.name)
    		return
    
    	case *Const:
    		check.addDeclDep(obj)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. src/cmd/internal/testdir/testdir_test.go

    	m := make(map[string]*goDirPkg)
    	for _, file := range files {
    		name := file.Name()
    		pkgname, err := getPackageNameFromSource(filepath.Join(dir, name))
    		if err != nil {
    			t.Fatal(err)
    		}
    		p, ok := m[pkgname]
    		if singlefilepkgs || !ok {
    			p = &goDirPkg{name: pkgname}
    			pkgs = append(pkgs, p)
    			m[pkgname] = p
    		}
    		p.files = append(p.files, name)
    	}
    	return pkgs
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/check.go

    	versions      map[*syntax.PosBase]string  // maps files to version strings (each file has an entry); shared with Info.FileVersions if present
    	imports       []*PkgName                  // list of imported packages
    	dotImportMap  map[dotImportKey]*PkgName   // maps dot-imported objects to the package they were dot-imported through
    	recvTParamMap map[*syntax.Name]*TypeParam // maps blank receiver type parameters to their type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  7. src/go/internal/gcimporter/iimport.go

    		pkgPathOff := r.uint64()
    		pkgPath := p.stringAt(pkgPathOff)
    		pkgName := p.stringAt(r.uint64())
    		_ = r.uint64() // package height; unused by go/types
    
    		if pkgPath == "" {
    			pkgPath = path
    		}
    		pkg := imports[pkgPath]
    		if pkg == nil {
    			pkg = types.NewPackage(pkgPath, pkgName)
    			imports[pkgPath] = pkg
    		} else if pkg.Name() != pkgName {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  8. src/cmd/internal/cov/covcmd/cmddefs.go

    	// File into which cmd/cover should emit summary info
    	// when instrumentation is complete.
    	OutConfig string
    
    	// Import path for the package being instrumented.
    	PkgPath string
    
    	// Package name.
    	PkgName string
    
    	// Instrumentation granularity: one of "perfunc" or "perblock" (default)
    	Granularity string
    
    	// Module path for this package (empty if no go.mod in use)
    	ModulePath string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 30 16:13:15 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modindex/scan.go

    type rawFile struct {
    	error      string
    	parseError string
    
    	name                 string
    	synopsis             string // doc.Synopsis of package comment... Compute synopsis on all of these?
    	pkgName              string
    	ignoreFile           bool   // starts with _ or . or should otherwise always be ignored
    	binaryOnly           bool   // cannot be rebuilt from source (has //go:binary-only-package comment)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. src/go/types/typexpr.go

    	// (This code is only needed for dot-imports. Without them,
    	// we only have to mark variables, see *Var case below).
    	if pkgName := check.dotImportMap[dotImportKey{scope, obj.Name()}]; pkgName != nil {
    		pkgName.used = true
    	}
    
    	switch obj := obj.(type) {
    	case *PkgName:
    		check.errorf(e, InvalidPkgUse, "use of package %s not in selector", obj.name)
    		return
    
    	case *Const:
    		check.addDeclDep(obj)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
Back to top