Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for indirect$ (0.16 sec)

  1. src/cmd/go/internal/modload/buildlist.go

    	//
    	// The "direct" map controls which modules are annotated with "// indirect"
    	// comments in the go.mod file, and may impact which modules are listed as
    	// explicit roots (vs. indirect-only dependencies). However, it should not
    	// have a semantic effect on the build list overall.
    	//
    	// The initial direct map is populated from the existing "// indirect"
    	// comments (or lack thereof) in the go.mod file. It is updated by the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 16:04:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/api_test.go

    			}
    		}
    		if !sameSlice(index, test.index) {
    			t.Errorf("%s: got index = %v; want %v", test.src, index, test.index)
    		}
    		if indirect != test.indirect {
    			t.Errorf("%s: got indirect = %v; want %v", test.src, indirect, test.indirect)
    		}
    	}
    }
    
    // Test for go.dev/issue/52715
    func TestLookupFieldOrMethod_RecursiveGeneric(t *testing.T) {
    	const src = `
    package pkg
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  3. src/go/types/api_test.go

    			}
    		}
    		if !sameSlice(index, test.index) {
    			t.Errorf("%s: got index = %v; want %v", test.src, index, test.index)
    		}
    		if indirect != test.indirect {
    			t.Errorf("%s: got indirect = %v; want %v", test.src, indirect, test.indirect)
    		}
    	}
    }
    
    // Test for go.dev/issue/52715
    func TestLookupFieldOrMethod_RecursiveGeneric(t *testing.T) {
    	const src = `
    package pkg
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  4. tests/query_test.go

    						}
    					case "Birthday":
    						if _, ok := first[dbName].(*time.Time); !ok {
    							t.Errorf("invalid data type for %v, got %#v", dbName, first[dbName])
    						}
    					}
    
    					reflectValue := reflect.Indirect(reflect.ValueOf(users[0]))
    					AssertEqual(t, first[dbName], reflectValue.FieldByName(name).Interface())
    				})
    			}
    		}
    	})
    
    	t.Run("FirstMapWithTable", func(t *testing.T) {
    		first := map[string]interface{}{}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 49.8K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modload/init.go

    	if toolchain != "" {
    		roots = append(roots, module.Version{Path: "toolchain", Version: toolchain})
    		// Leave the toolchain as indirect: nothing in the user's module directly
    		// imports a package from the toolchain, and (like an indirect dependency in
    		// a module without graph pruning) we may remove the toolchain line
    		// automatically if the 'go' version is changed so that it implies the exact
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modload/load.go

    		// it to be untidy.)
    		//
    		// Promoting an indirect dependency to a root adds the next layer of its
    		// dependencies to the module graph, which may increase the selected
    		// versions of other modules from which we have already loaded packages.
    		// So after we promote an indirect dependency to a root, we need to reload
    		// packages, which means another iteration of loading.
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modget/get.go

    				retractions[i].message = err.Error()
    			}
    		})
    	}
    
    	// Load deprecations for modules mentioned on the command line. Only load
    	// deprecations for indirect dependencies if they're also direct dependencies
    	// of the main module. Deprecations of purely indirect dependencies are
    	// not actionable.
    	deprecations := make([]modMessage, 0, len(relevantMods))
    	for m, flags := range relevantMods {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:26:32 UTC 2024
    - 66.5K bytes
    - Viewed (0)
  8. src/text/template/exec_test.go

    	// Fixed bugs.
    	// Must separate dot and receiver; otherwise args are evaluated with dot set to variable.
    	{"bug0", "{{range .MSIone}}{{if $.Method1 .}}X{{end}}{{end}}", "X", tVal, true},
    	// Do not loop endlessly in indirect for non-empty interfaces.
    	// The bug appears with *interface only; looped forever.
    	{"bug1", "{{.Method0}}", "M0", &iVal, true},
    	// Was taking address of interface field, so method set was empty.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  9. src/runtime/asm_amd64.s

    	// Call needm to obtain one m for temporary use.
    	// In this case, we're running on the thread stack, so there's
    	// lots of space, but the linker doesn't know. Hide the call from
    	// the linker analysis by using an indirect call through AX.
    	get_tls(CX)
    #ifdef GOOS_windows
    	MOVL	$0, BX
    	CMPQ	CX, $0
    	JEQ	2(PC)
    #endif
    	MOVQ	g(CX), BX
    	CMPQ	BX, $0
    	JEQ	needm
    	MOVQ	g_m(BX), BX
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 20:38:24 UTC 2024
    - 60.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/SetsTest.java

        ensureNotDirectlyModifiable(unmod.tailSet(2, true));
        ensureNotDirectlyModifiable(unmod.subSet(1, 3));
        ensureNotDirectlyModifiable(unmod.subSet(1, true, 3, true));
    
        /* UnsupportedOperationException on indirect modifications. */
        NavigableSet<Integer> reverse = unmod.descendingSet();
        try {
          reverse.add(4);
          fail("UnsupportedOperationException expected");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 49.2K bytes
    - Viewed (0)
Back to top