Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for disambiguation (0.29 sec)

  1. src/go/types/issues_test.go

    `
    
    		tsrc = `
    package template
    
    import "text/template"
    
    type T int
    
    // Verify that the current package name also causes disambiguation.
    var _ T = template /* ERRORx "cannot use.*text/template.* as T value" */.Template{}
    `
    	)
    
    	a := mustTypecheck(asrc, nil, nil)
    	imp := importHelper{pkg: a, fallback: importer.Default()}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/issues_test.go

    `
    
    		tsrc = `
    package template
    
    import "text/template"
    
    type T int
    
    // Verify that the current package name also causes disambiguation.
    var _ T = template /* ERRORx "cannot use.*text/template.* as T value" */.Template{}
    `
    	)
    
    	a := mustTypecheck(asrc, nil, nil)
    	imp := importHelper{pkg: a, fallback: defaultImporter()}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  3. src/internal/trace/order.go

    	// face of broken timestamps. See the go122-syscall-steal-proc-ambiguous test for
    	// more details.
    	//
    	// Note that because this sequence number only exists as a tool for disambiguation,
    	// we can enforce that we have the right sequence number at this point; we don't need
    	// to back off and see if any other events will advance. This is a running P.
    	pSeq := makeSeq(gen, ev.args[0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modget/get.go

    // remaining candidate, disambiguate returns that candidate, along with
    // an indication of whether that result interprets cs.path as a package
    //
    // Note: we're only doing very simple disambiguation here. The goal is to
    // reproduce the user's intent, not to find a solution that a human couldn't.
    // In the vast majority of cases, we expect only one module per pathSet,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:26:32 UTC 2024
    - 66.5K bytes
    - Viewed (0)
  5. src/testing/testing.go

    //
    // Each subtest and sub-benchmark has a unique name: the combination of the name
    // of the top-level test and the sequence of names passed to Run, separated by
    // slashes, with an optional trailing sequence number for disambiguation.
    //
    // The argument to the -run, -bench, and -fuzz command-line flags is an unanchored regular
    // expression that matches the test's name. For tests with multiple slash-separated
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/internal/component/ResolutionFailureHandlerIntegrationTest.groovy

        private final Demonstration ambiguousGraphVariantForProjectWithoutSingleDisambiguatingAttribute = new Demonstration("Ambiguous graph variant (project without single disambiguating attribute)", VariantSelectionException.class, VariantAwareAm...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:55:38 UTC 2024
    - 45K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/typestring.go

    		w.typ(t.elem)
    
    	case *Slice:
    		w.string("[]")
    		w.typ(t.elem)
    
    	case *Struct:
    		w.string("struct{")
    		for i, f := range t.fields {
    			if i > 0 {
    				w.byte(';')
    			}
    
    			// If disambiguating one struct for another, look for the first unexported field.
    			// Do this first in case of nested structs; tag the first-outermost field.
    			pkgAnnotate := false
    			if w.qf == nil && w.pkgInfo && !isExported(f.name) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. src/go/types/typestring.go

    		w.typ(t.elem)
    
    	case *Slice:
    		w.string("[]")
    		w.typ(t.elem)
    
    	case *Struct:
    		w.string("struct{")
    		for i, f := range t.fields {
    			if i > 0 {
    				w.byte(';')
    			}
    
    			// If disambiguating one struct for another, look for the first unexported field.
    			// Do this first in case of nested structs; tag the first-outermost field.
    			pkgAnnotate := false
    			if w.qf == nil && w.pkgInfo && !isExported(f.name) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. src/cmd/doc/main.go

    			return pkg, arg, "", false
    		}
    	} else {
    		pkg, importErr = build.Import(arg, wd, build.ImportComment)
    		if importErr == nil {
    			return pkg, arg, "", false
    		}
    	}
    	// Another disambiguator: If the argument starts with an upper
    	// case letter, it can only be a symbol in the current directory.
    	// Kills the problem caused by case-insensitive file systems
    	// matching an upper case name as a package name.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. src/go/types/check.go

    	// pkgPathMap maps package names to the set of distinct import paths we've
    	// seen for that name, anywhere in the import graph. It is used for
    	// disambiguating package names in error messages.
    	//
    	// pkgPathMap is allocated lazily, so that we don't pay the price of building
    	// it on the happy path. seenPkgMap tracks the packages that we've already
    	// walked.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top