Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for Book (0.09 sec)

  1. src/cmd/link/internal/ld/testdata/deadcode/ifacemethod5.go

    // if the type is "indirectly" converted to an interface
    // using reflection with a method descriptor as intermediate.
    // However, it uses MethodByName() with a constant name of
    // a method to look up. This does not disable the DCE like
    // Method(0) does.
    
    package main
    
    import "reflect"
    
    type S int
    
    func (s S) M() { println("S.M") }
    
    type I interface{ M() }
    
    type T float64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:07:26 UTC 2023
    - 777 bytes
    - Viewed (0)
  2. schema/schema_helper_test.go

    					t.Errorf("schema %v failed to look up field with dbname %v", s, f.DBName)
    				}
    			}
    
    			for _, name := range []string{f.DBName, f.Name} {
    				if name != "" {
    					if field := s.LookUpField(name); field == nil || (field.Name != name && field.DBName != name) {
    						t.Errorf("schema %v failed to look up field with dbname %v", s, f.DBName)
    					}
    				}
    			}
    
    			if f.PrimaryKey {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Dec 15 08:31:23 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  3. src/cmd/go/internal/str/str.go

    // to EqualFold. Note that strings.ToUpper and strings.ToLower
    // do not have the desired property in some corner cases.
    func ToFold(s string) string {
    	// Fast path: all ASCII, no upper case.
    	// Most paths look like this already.
    	for i := 0; i < len(s); i++ {
    		c := s[i]
    		if c >= utf8.RuneSelf || 'A' <= c && c <= 'Z' {
    			goto Slow
    		}
    	}
    	return s
    
    Slow:
    	var b strings.Builder
    	for _, r := range s {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 20:08:07 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/typesinternal/recv.go

    		isPtr = true
    		t = ptr.Elem()
    	}
    	named, _ = aliases.Unalias(t).(*types.Named)
    	return
    }
    
    // Unpointer returns T given *T or an alias thereof.
    // For all other types it is the identity function.
    // It does not look at underlying types.
    // The result may be an alias.
    //
    // Use this function to strip off the optional pointer on a receiver
    // in a field or method selection, without losing the named type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag_old.go

    			}
    		}
    	}
    }
    
    func checkOtherFile(pass *analysis.Pass, filename string) error {
    	content, tf, err := analysisutil.ReadFile(pass, filename)
    	if err != nil {
    		return err
    	}
    
    	// We must look at the raw lines, as build tags may appear in non-Go
    	// files such as assembly files.
    	lines := bytes.SplitAfter(content, nl)
    
    	// Determine cutpoint where +build comments are no longer valid.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/callee.go

    // a function, method, builtin, or variable.
    //
    // Functions and methods may potentially have type parameters.
    func Callee(info *types.Info, call *ast.CallExpr) types.Object {
    	fun := astutil.Unparen(call.Fun)
    
    	// Look through type instantiation if necessary.
    	isInstance := false
    	switch fun.(type) {
    	case *ast.IndexExpr, *ast.IndexListExpr:
    		// When extracting the callee from an *IndexExpr, we need to check that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/test/mergelocals_test.go

    	// a specific set of overlappings or frame offsets, this
    	// tests just verifies that there is a decent-sized clump of 4+ vars that
    	// get overlapped.
    	//
    	// The expected output blob we're interested might look like
    	// this (for amd64):
    	//
    	// =-= stack layout for ABC:
    	// 2: "p1" frameoff -8200 ...
    	// 3: "s" frameoff -8200 ...
    	// 4: "v2" frameoff -8200 ...
    	// 5: "v3" frameoff -8200 ...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:43:53 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/inline/inlheur/testdata/props/calls.go

    // <endcallsites>
    // <endfuncpreamble>
    func T_calls_not_on_panic_paths(x int, q []string) {
    	if x != G {
    		panic("ouch")
    		/* Notes: */
    		/* - we only look for post-dominating panic/exit, so */
    		/*   this site will on fact not have a panicpath flag */
    		/* - vet will complain about this site as unreachable */
    		callee(x)
    	}
    	if x != G {
    		callee(x)
    		if x < 100 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/inittask.go

    				continue // already found
    			}
    			q = append(q, s)
    			m[s] = 0 // mark as found
    		}
    		m[x] = ndeps
    		if ndeps == 0 {
    			h.push(ldr, x)
    		}
    	}
    
    	// Sort edges so we can look them up by edge destination.
    	sort.Slice(edges, func(i, j int) bool {
    		return edges[i].to < edges[j].to
    	})
    
    	// Figure out the schedule.
    	sched := ldr.MakeSymbolBuilder(symName)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 20:09:45 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  10. src/cmd/fix/main_test.go

    	// If cgo is enabled, enforce that cgo commands invoked by cmd/fix
    	// do not fail during testing.
    	if testenv.HasCGO() {
    		testenv.MustHaveGoBuild(t) // Really just 'go tool cgo', but close enough.
    
    		// The reportCgoError hook is global, so we can't set it per-test
    		// if we want to be able to run those tests in parallel.
    		// Instead, simply set it to panic on error: the goroutine dump
    		// from the panic should help us determine which test failed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top