- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 42 for imp (0.1 sec)
-
src/cmd/compile/internal/types2/api.go
// // For dot-imports, the package name is ".". // // 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)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 13:48:53 UTC 2024 - 17.4K bytes - Viewed (0) -
src/cmd/dist/build.go
importMap := make(map[string]string) for _, p := range gofiles { for _, imp := range readimports(p) { if imp == "C" { fatalf("%s imports C", p) } importMap[imp] = resolveVendor(imp, dir) } } sortedImports := make([]string, 0, len(importMap)) for imp := range importMap { sortedImports = append(sortedImports, imp) } sort.Strings(sortedImports) for _, dep := range importMap {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 18:34:40 UTC 2024 - 54K bytes - Viewed (0) -
src/go/ast/filter.go
var imports []*ImportSpec if mode&FilterImportDuplicates != 0 { seen := make(map[string]bool) for _, filename := range filenames { f := pkg.Files[filename] for _, imp := range f.Imports { if path := imp.Path.Value; !seen[path] { // TODO: consider handling cases where: // - 2 imports exist with the same import path but // have different local names (one should probably
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 13.3K bytes - Viewed (0) -
src/mdo/model-v3.vm
// Generated by Modello Velocity from ${template} // template, any modifications will be overwritten. // ============================================================== package ${package}; #foreach ( $imp in $imports ) import $imp; #end @Generated public class ${class.name} #if ( $class.superClass ) extends ${class.superClass} implements Serializable, Cloneable #else extends BaseObject
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Nov 06 19:04:44 UTC 2023 - 13.1K bytes - Viewed (0) -
src/cmd/link/internal/ld/pe.go
0x0d, 0x0a, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, } type Imp struct { s loader.Sym off uint64 next *Imp argsize int } type Dll struct { name string nameoff uint64 thunkoff uint64 ms *Imp next *Dll } var ( rsrcsyms []loader.Sym PESECTHEADR int32 PEFILEHEADR int32
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 19:01:27 UTC 2023 - 48.8K bytes - Viewed (0) -
src/go/internal/gcimporter/gcimporter_test.go
// import must succeed (test for issue at hand) pkg := importPkg(t, "./testdata/b", tmpdir) // make sure all indirectly imported packages have names for _, imp := range pkg.Imports() { if imp.Name() == "" { t.Errorf("no name for %s package", imp.Path()) } } } func TestTypeNamingOrder(t *testing.T) { testenv.MustHaveGoBuild(t) // This package only handles gc export data.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:22:59 UTC 2024 - 21.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 93.3K bytes - Viewed (0) -
src/go/types/api_test.go
for _, s := range f.Decls[0].(*ast.GenDecl).Specs { if imp, _ := s.(*ast.ImportSpec); imp != nil { imports[imp.Path.Value] = imp } } for _, test := range tests { imp := imports[test.path] if imp == nil { t.Fatalf("invalid test case: import path %s not found", test.path) } got := info.PkgNameOf(imp) if got == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 94.2K bytes - Viewed (0) -
ci/official/utilities/setup_macos.sh
# a service account that has the right permissions to be able to do so. set +x if [[ -n "${GOOGLE_APPLICATION_CREDENTIALS:-}" ]]; then # Python 3.12 removed the module `imp` which is needed by gcloud CLI so we set # `CLOUDSDK_PYTHON` to Python 3.11 which is the system Python on TFCI Mac # VMs. export CLOUDSDK_PYTHON=$(which python3.11)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 15 15:23:28 UTC 2024 - 6.2K bytes - Viewed (0) -
src/mdo/model.vm
// Generated by Modello Velocity from ${template} // template, any modifications will be overwritten. // ============================================================== package ${package}; #foreach ( $imp in $imports ) import $imp; #end /** #foreach ( $line in ${class.description.trim().split("\n")} ) * ${line.trim()} #end */ @Experimental @Generated @ThreadSafe @Immutable
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Feb 07 21:28:01 UTC 2024 - 17.1K bytes - Viewed (0)