Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 874 for unnamed (0.12 sec)

  1. src/internal/types/testdata/check/issues1.go

    }
    
    // Simplified, from https://go2goplay.golang.org/p/efS6x6s-9NI:
    func Sum[T interface{~int | ~string}](s []T) (sum T) {
    	for _, v := range s {
    		sum += v
    	}
    	return
    }
    
    // Assignability of an unnamed pointer type to a type parameter that
    // has a matching underlying type.
    func _[T interface{}, PT interface{~*T}] (x T) PT {
        return &x
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:56:37 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc

          i += 2;
        } else {
          // Unsupported character in the equation.
          return std::nullopt;
        }
      }
    
      *rhs_named_label_count = rhs_count;
      return labels;
    }
    
    // Generate new unnamed labels for the expression.
    // For example, if we have GenerateLabels(2, {'b', 'c', 'd'}) for "...xy"
    // We will have "dcxy" for the ellipsis expression since it's rank 4,
    // we will have dcbxy if it's rank 5.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/ctrlflow/ctrlflow.go

    	funcDecls map[*types.Func]*declInfo
    	funcLits  map[*ast.FuncLit]*litInfo
    	pass      *analysis.Pass // transient; nil after construction
    }
    
    // CFGs has two maps: funcDecls for named functions and funcLits for
    // unnamed ones. Unlike funcLits, the funcDecls map is not keyed by its
    // syntax node, *ast.FuncDecl, because callMayReturn needs to do a
    // look-up by *types.Func, and you can get from an *ast.FuncDecl to a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/listener_builder_test.go

    	}{
    		{
    			name:   "permissive",
    			config: "",
    			http: map[int]bool{
    				// Should not see HTTP inspector if we declare ports
    				80: true,
    				82: true,
    				// But should see for passthrough or unnamed ports
    				81:   false,
    				1000: false,
    			},
    			tls: map[int]bool{
    				// Permissive mode: inspector is set everywhere
    				80:   false,
    				82:   false,
    				81:   false,
    				1000: false,
    			},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  5. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/internal/resolver/IdeDependencySet.java

                // We assume that a test-only dependency is not a module, which corresponds to how Eclipse does test running for modules:
                // It patches the main module with the tests and expects test dependencies to be part of the unnamed module (classpath).
                return javaModuleDetector.isModule(inferModulePath && !testOnly, artifact);
            }
    
            private boolean isLocalGroovyDependency(ResolvedArtifactResult artifact) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 14.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/lookup.go

    			}
    			return Typ[Invalid], true
    		}
    		return p.base, true
    	}
    	return typ, false
    }
    
    // derefStructPtr dereferences typ if it is a (named or unnamed) pointer to a
    // (named or unnamed) struct and returns its base. Otherwise it returns typ.
    func derefStructPtr(typ Type) Type {
    	if p, _ := under(typ).(*Pointer); p != nil {
    		if _, ok := under(p.base).(*Struct); ok {
    			return p.base
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  7. src/go/types/lookup.go

    			}
    			return Typ[Invalid], true
    		}
    		return p.base, true
    	}
    	return typ, false
    }
    
    // derefStructPtr dereferences typ if it is a (named or unnamed) pointer to a
    // (named or unnamed) struct and returns its base. Otherwise it returns typ.
    func derefStructPtr(typ Type) Type {
    	if p, _ := under(typ).(*Pointer); p != nil {
    		if _, ok := under(p.base).(*Struct); ok {
    			return p.base
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  8. src/internal/types/testdata/spec/conversions.go

    func _[X Foo, T Far](x X) T {
    	return T(x /* ERROR "cannot convert x (variable of type X constrained by Foo) to type T: cannot convert Foo (in X) to type Far (in T)" */)
    }
    
    // "x's type and T are unnamed pointer types and their pointer base types
    // have identical underlying types if tags are ignored"
    
    func _[X ~*Foo, T ~*Bar](x X) T         { return T(x) }
    func _[X ~*Foo | ~*Bar, T ~*Bar](x X) T { return T(x) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  9. src/go/types/conversions.go

    	// "V and T have identical underlying types if tags are ignored
    	// and V and T are not type parameters"
    	if IdenticalIgnoreTags(Vu, Tu) && Vp == nil && Tp == nil {
    		return true
    	}
    
    	// "V and T are unnamed pointer types and their pointer base types
    	// have identical underlying types if tags are ignored
    	// and their pointer base types are not type parameters"
    	if V, ok := V.(*Pointer); ok {
    		if T, ok := T.(*Pointer); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. src/go/types/call.go

    		var params []*Var
    		if sig.params != nil {
    			params = sig.params.vars
    		}
    		// Be consistent about named/unnamed parameters. This is not needed
    		// for type-checking, but the newly constructed signature may appear
    		// in an error message and then have mixed named/unnamed parameters.
    		// (An alternative would be to not print parameter names in errors,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
Back to top