Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for pkgName (0.23 sec)

  1. 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)
  2. src/cmd/link/internal/ld/dwarf.go

    			var pkgname string
    			if pnSymIdx := d.ldr.Lookup(dwarf.CUInfoPrefix+"packagename."+unit.Lib.Pkg, 0); pnSymIdx != 0 {
    				pnsData := d.ldr.Data(pnSymIdx)
    				pkgname = string(pnsData)
    			}
    			newattr(unit.DWInfo, dwarf.DW_AT_go_package_name, dwarf.DW_CLS_STRING, int64(len(pkgname)), pkgname)
    
    			// Scan all functions in this compilation unit, create
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/api_test.go

    		}
    	}
    	return conf.Check(f.PkgName.Value, []*syntax.File{f}, info)
    }
    
    func mustTypecheck(src string, conf *Config, info *Info) *Package {
    	pkg, err := typecheck(src, conf, info)
    	if err != nil {
    		panic(err) // so we don't need to pass *testing.T
    	}
    	return pkg
    }
    
    // pkgName extracts the package name from src, which must contain a package header.
    func pkgName(src string) string {
    	const kw = "package "
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  4. src/cmd/dist/build.go

    	// Hand the Go files to the compiler en masse.
    	// For packages containing assembly, this writes go_asm.h, which
    	// the assembly files will need.
    	pkgName := pkg
    	if strings.HasPrefix(pkg, "cmd/") && strings.Count(pkg, "/") == 1 {
    		pkgName = "main"
    	}
    	b := pathf("%s/_go_.a", workdir)
    	clean = append(clean, b)
    	if !ispackcmd {
    		link = append(link, b)
    	} else {
    		archive = b
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  5. src/go/types/api_test.go

    	pkg, err := typecheck(src, conf, info)
    	if err != nil {
    		panic(err) // so we don't need to pass *testing.T
    	}
    	return pkg
    }
    
    // pkgName extracts the package name from src, which must contain a package header.
    func pkgName(src string) string {
    	const kw = "package "
    	if i := strings.Index(src, kw); i >= 0 {
    		after := src[i+len(kw):]
    		n := len(after)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  6. src/cmd/go/internal/test/test.go

    		// go.codereview/patch tests.
    		// For package names containing those words, use test.test.exe
    		// instead of pkgname.test.exe.
    		// Note that this file name is only used in the Go command's
    		// temporary directory. If the -c or other flags are
    		// given, the code below will still use pkgname.test.exe.
    		// There are two user-visible effects of this change.
    		// First, you can actually run 'go test' in directories that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/parser.go

    	// PackageClause
    	f.GoVersion = p.goVersion
    	p.top = false
    	if !p.got(_Package) {
    		p.syntaxError("package statement must be first")
    		return nil
    	}
    	f.Pragma = p.takePragma()
    	f.PkgName = p.name()
    	p.want(_Semi)
    
    	// don't bother continuing if package clause has errors
    	if p.first != nil {
    		return nil
    	}
    
    	// Accept import declarations anywhere for error tolerance, but complain.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
Back to top