Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for food (0.41 sec)

  1. src/cmd/compile/internal/types2/resolver.go

    		// alias declarations, and then everything else. This appears to avoid most situations
    		// where the type of an alias is needed before it is available.
    		// There may still be cases where this is not good enough (see also go.dev/issue/25838).
    		// In those cases Checker.ident will report an error ("invalid use of type alias").
    		var aliasList []*TypeName
    		var othersList []Object // everything that's not a type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/predicates.go

    // that appears later in this list: integer, rune, floating-point, complex.
    // Otherwise, if x != y, the result is nil.
    func maxType(x, y Type) Type {
    	// We only care about untyped types (for now), so == is good enough.
    	// TODO(gri) investigate generalizing this function to simplify code elsewhere
    	if x == y {
    		return x
    	}
    	if isUntypedNumeric(x) && isUntypedNumeric(y) {
    		// untyped types are basic types
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. src/bytes/buffer_test.go

    	err      error
    }{
    	{"", 0, []string{""}, io.EOF},
    	{"a\x00", 0, []string{"a\x00"}, nil},
    	{"abbbaaaba", 'b', []string{"ab", "b", "b", "aaab"}, nil},
    	{"hello\x01world", 1, []string{"hello\x01"}, nil},
    	{"foo\nbar", 0, []string{"foo\nbar"}, io.EOF},
    	{"alpha\nbeta\ngamma\n", '\n', []string{"alpha\n", "beta\n", "gamma\n"}, nil},
    	{"alpha\nbeta\ngamma", '\n', []string{"alpha\n", "beta\n", "gamma"}, io.EOF},
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:31:36 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modload/import.go

    // that suggests a 'go get' command for root packages that transitively import
    // packages from modules with missing sums. load.CheckPackageErrors would be
    // a good place to consolidate errors, but we'll need to attach the import
    // stack here.
    type ImportMissingSumError struct {
    	importPath                string
    	found                     bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modfetch/fetch.go

    		// Add only the sums that we actually checked: the user may have edited or
    		// truncated the file to remove erroneous hashes, and we shouldn't restore
    		// them without good reason.
    		goSum.m = make(map[module.Version][]string, len(goSum.m))
    		readGoSum(goSum.m, GoSumFile, data)
    		for ms, st := range goSum.status {
    			if st.used && !sumInWorkspaceModulesLocked(ms.mod) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  6. src/cmd/go/internal/work/action.go

    			// we'll end up building an overall library or executable that depends at runtime
    			// on other libraries that are out-of-date, which is clearly not good either.
    			// We call it ModeBuggyInstall to make clear that this is not right.
    			a.Deps = append(a.Deps, b.linkSharedAction(ModeBuggyInstall, ModeBuggyInstall, p1.Shlib, nil))
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:39:17 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/edit.go

    	// we skip any version that has already been rejected.
    	//
    	// NOTE(bcmills): I am not sure that the rejectedRoot map is really necessary,
    	// since we normally only downgrade roots or accept indirect upgrades to
    	// known-good versions. However, I am having trouble proving that accepting an
    	// indirect upgrade never introduces a conflict that leads to further
    	// downgrades. I really want to be able to prove that editRequirements
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 21:46:32 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  8. src/cmd/cgo/doc.go

    An error on not-declared:1 indicates that foo is undeclared.
    An error on not-type:1 indicates that foo is not a type (if declared at all, it is an identifier).
    An error on not-int-const:1 indicates that foo is not an integer constant.
    An error on not-num-const:1 indicates that foo is not a number constant.
    An error on not-str-lit:1 indicates that foo is not a string literal.
    An error on not-signed-int-const:1 indicates that foo is not a signed integer constant.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/inline/inlheur/scoring.go

    // example with this SCC:
    //
    //	func foo(x int) {           func bar(x int, f func()) {
    //	  if x != 0 {                  f()
    //	    bar(x, func(){})           foo(x-1)
    //	  }                         }
    //	}
    //
    // We don't want to perform scoring for the 'foo' call in "bar" until
    // after foo has been analyzed, but it's conceivable that CanInline
    // might visit bar before foo for this SCC.
    func ScoreCalls(fn *ir.Func) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:42:52 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modcmd/vendor.go

    // src/cmd/go/internal/load/pkg.go
    func checkPathCollisions(modpkgs map[module.Version][]string) {
    	var foldPath = make(map[string]string, len(modpkgs))
    	for m := range modpkgs {
    		fold := str.ToFold(m.Path)
    		if other := foldPath[fold]; other == "" {
    			foldPath[fold] = m.Path
    		} else if other != m.Path {
    			base.Fatalf("go.mod: case-insensitive import collision: %q and %q", m.Path, other)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 14:19:59 UTC 2024
    - 14.5K bytes
    - Viewed (0)
Back to top