Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 36 for igmp (0.12 sec)

  1. src/go/types/format.go

    	forName, ok := check.pkgPathMap[pkg.name]
    	if !ok {
    		forName = make(map[string]bool)
    		check.pkgPathMap[pkg.name] = forName
    	}
    	forName[pkg.path] = true
    
    	for _, imp := range pkg.imports {
    		check.markImports(imp)
    	}
    }
    
    // stripAnnotations removes internal (type) annotations from s.
    func stripAnnotations(s string) string {
    	var buf strings.Builder
    	for _, r := range s {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. src/go/doc/example.go

    	var groupStarts []*ast.ImportSpec
    	prevEnd := token.Pos(-2)
    	for _, imp := range imps {
    		if imp.Pos()-prevEnd > 2 {
    			groupStarts = append(groupStarts, imp)
    		}
    		prevEnd = imp.End()
    		// Account for end-of-line comments.
    		if imp.Comment != nil {
    			prevEnd = imp.Comment.End()
    		}
    	}
    	return groupStarts
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/internal/analysisutil/util.go

    			min = offset
    		} else {
    			max = offset
    		}
    	}
    }
    
    // Imports returns true if path is imported by pkg.
    func Imports(pkg *types.Package, path string) bool {
    	for _, imp := range pkg.Imports() {
    		if imp.Path() == path {
    			return true
    		}
    	}
    	return false
    }
    
    // IsNamedType reports whether t is the named type with the given package path
    // and one of the given names.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/facts/facts.go

    	m := make(map[key]analysis.Fact) // one big bucket
    	for _, imp := range d.pkg.Imports() {
    		logf := func(format string, args ...interface{}) {
    			if debug {
    				prefix := fmt.Sprintf("in %s, importing %s: ",
    					d.pkg.Path(), imp.Path())
    				log.Print(prefix, fmt.Sprintf(format, args...))
    			}
    		}
    
    		// Read the gob-encoded facts.
    		data, err := read(imp.Path())
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top