Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for igmp (0.1 sec)

  1. src/cmd/go/internal/modindex/read.go

    			importMap = importPos
    			embedMap = embedPos
    			directives = &p.Directives
    		}
    		*fileList = append(*fileList, name)
    		if importMap != nil {
    			for _, imp := range imports {
    				importMap[imp.path] = append(importMap[imp.path], imp.position)
    			}
    		}
    		if embedMap != nil {
    			for _, e := range tf.embeds() {
    				embedMap[e.pattern] = append(embedMap[e.pattern], e.position)
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  2. src/go/doc/reader.go

    // (qualified name) or the parent is nil, the field is ignored.
    // The function returns the field name.
    func (r *reader) recordAnonymousField(parent *namedType, fieldType ast.Expr) (fname string) {
    	fname, imp := baseTypeName(fieldType)
    	if parent == nil || imp {
    		return
    	}
    	if ftype := r.lookupType(fname); ftype != nil {
    		ftype.isEmbedded = true
    		_, ptr := fieldType.(*ast.StarExpr)
    		parent.embedded[ftype] = ptr
    	}
    	return
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  3. src/go/types/api.go

    //
    // For dot-imports, the package name is ".".
    //
    // 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)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  4. src/go/internal/gcimporter/ureader.go

    	}
    
    	for _, iface := range pr.ifaces {
    		iface.Complete()
    	}
    
    	// Imports() of pkg are all of the transitive packages that were loaded.
    	var imps []*types.Package
    	for _, imp := range pr.pkgs {
    		if imp != nil && imp != pkg {
    			imps = append(imps, imp)
    		}
    	}
    	slices.SortFunc(imps, func(a, b *types.Package) int {
    		return strings.Compare(a.Path(), b.Path())
    	})
    	pkg.SetImports(imps)
    
    	pkg.MarkComplete()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. src/go/build/build.go

    		}
    
    		// Record imports and information about cgo.
    		isCgo := false
    		for _, imp := range info.imports {
    			if imp.path == "C" {
    				if isTest {
    					badGoFile(name, fmt.Errorf("use of cgo in test %s not supported", filename))
    					continue
    				}
    				isCgo = true
    				if imp.doc != nil {
    					if err := ctxt.saveCgo(filename, p, imp.doc); err != nil {
    						badGoFile(name, err)
    					}
    				}
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
Back to top