Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 157 for pkgname (0.36 sec)

  1. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    			return ast.NewIdent(t.Obj().Name())
    		}
    		pkgName := t.Obj().Pkg().Name()
    
    		// If the file already imports the package under another name, use that.
    		for _, cand := range f.Imports {
    			if path, _ := strconv.Unquote(cand.Path.Value); path == t.Obj().Pkg().Path() {
    				if cand.Name != nil && cand.Name.Name != "" {
    					pkgName = cand.Name.Name
    				}
    			}
    		}
    		if pkgName == "." {
    			return ast.NewIdent(t.Obj().Name())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. 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)
  3. api/go1.5.txt

    pkg go/types, method (*PkgName) Exported() bool
    pkg go/types, method (*PkgName) Id() string
    pkg go/types, method (*PkgName) Imported() *Package
    pkg go/types, method (*PkgName) Name() string
    pkg go/types, method (*PkgName) Parent() *Scope
    pkg go/types, method (*PkgName) Pkg() *Package
    pkg go/types, method (*PkgName) Pos() token.Pos
    pkg go/types, method (*PkgName) String() string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K 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/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)
  6. 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)
  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/cgo/internal/testcshared/cshared_test.go

    		t.Error(out)
    	}
    }
    
    func testSignalHandlers(t *testing.T, pkgname, cfile, cmd string) {
    	if GOOS == "windows" {
    		t.Skipf("Skipping on %s", GOOS)
    	}
    	globalSkip(t)
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    	testenv.MustHaveBuildMode(t, "c-shared")
    
    	libname := pkgname + ".a"
    	run(t,
    		nil,
    		"go", "build",
    		"-buildmode=c-shared",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
  9. src/go/build/deps_test.go

    	}
    
    	ctxt := Default
    	all, err := listStdPkgs(ctxt.GOROOT)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	for _, pkgname := range all {
    		if strings.ToLower(pkgname) != pkgname {
    			t.Errorf("package %q should not use upper-case path", pkgname)
    		}
    	}
    }
    
    // TestFindImports tests that findImports works.  See #43249.
    func TestFindImports(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/issues_test.go

    func _() {
    	A(B, nil // syntax error: missing ',' before newline in argument list
    }
    `
    	f, err := syntax.Parse(syntax.NewFileBase(pkgName(src)), strings.NewReader(src), func(error) {}, nil, 0)
    	if err == nil {
    		t.Fatal("expected syntax error")
    	}
    
    	var conf Config
    	conf.Check(f.PkgName.Value, []*syntax.File{f}, nil) // must not panic
    }
    
    func TestIssue61938(t *testing.T) {
    	const src = `
    package p
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
Back to top