Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 121 for variadicOk (0.29 sec)

  1. src/internal/types/testdata/examples/types.go

    // All types may be parameterized, including interfaces.
    type I1[T any] interface{
    	m1(T)
    }
    
    // There is no such thing as a variadic generic type.
    type _[T ... /* ERROR "invalid use of '...'" */ any] struct{}
    
    // Generic interfaces may be embedded as one would expect.
    type I2 interface {
    	I1(int)     // method!
    	I1[string]  // embedded I1
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 23:16:04 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  2. src/runtime/sys_darwin_arm64.s

    TEXT notok<>(SB),NOSPLIT,$0
    	MOVD	$0, R8
    	MOVD	R8, (R8)
    	B	0(PC)
    
    TEXT runtime·open_trampoline(SB),NOSPLIT,$0
    	SUB	$16, RSP
    	MOVW	8(R0), R1	// arg 2 flags
    	MOVW	12(R0), R2	// arg 3 mode
    	MOVW	R2, (RSP)	// arg 3 is variadic, pass on stack
    	MOVD	0(R0), R0	// arg 1 pathname
    	BL	libc_open(SB)
    	ADD	$16, RSP
    	RET
    
    TEXT runtime·close_trampoline(SB),NOSPLIT,$0
    	MOVW	0(R0), R0	// arg 1 fd
    	BL	libc_close(SB)
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:59 UTC 2023
    - 18.3K bytes
    - Viewed (0)
  3. src/reflect/type.go

    //
    // The variadic argument controls whether the function is variadic. FuncOf
    // panics if the in[len(in)-1] does not represent a slice and variadic is
    // true.
    func FuncOf(in, out []Type, variadic bool) Type {
    	if variadic && (len(in) == 0 || in[len(in)-1].Kind() != Slice) {
    		panic("reflect.FuncOf: last arg of variadic func must be slice")
    	}
    
    	// Make a func type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  4. src/text/template/exec.go

    				// Validate against the type of the actual parameter.
    				t = typ.In(numIn - 1)
    			} else {
    				// The added final argument corresponds to the variadic part.
    				// Validate against the type of the elements of the variadic slice.
    				t = t.Elem()
    			}
    		}
    		argv[i] = s.validateType(final, t)
    	}
    
    	// Special case for the "call" builtin.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/duplicate_shape_determining_constants.cc

          CompileTimeConstantOperand<TF::CollectivePermuteOp, 1>,
          // $group_size, $group_key
          CompileTimeConstantOperand<TF::CollectiveReduceV2Op, 1, 2>,
          CompileTimeConstantOperand<TF::ConcatV2Op, -1>,  // (variadic) $axis
          // $filter_sizes
          CompileTimeConstantOperand<TF::Conv2DBackpropFilterOp, 1>,
          CompileTimeConstantOperand<TF::Conv2DBackpropInputOp, 0>,  // $input_sizes
          // $filter_sizes
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/dot_general.cc

      Append(values, ranges...);
    }
    
    // Returns the number of elements in `range`.
    template <typename Range>
    size_t Size(Range&& range) {
      return range.size();
    }
    
    // Returns the total number of elements in a variadic number of `ranges`.
    template <typename Range, typename... RangeTs>
    size_t Size(Range&& range, RangeTs&&... ranges) {
      return range.size() + Size(std::forward<RangeTs>(ranges)...);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    				return nil
    			}
    			params = append(params, &ast.Field{
    				Type: p,
    				Names: []*ast.Ident{
    					{
    						Name: t.Params().At(i).Name(),
    					},
    				},
    			})
    		}
    		if t.Variadic() {
    			last := params[len(params)-1]
    			last.Type = &ast.Ellipsis{Elt: last.Type.(*ast.ArrayType).Elt}
    		}
    		var returns []*ast.Field
    		for i := 0; i < t.Results().Len(); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. src/go/internal/gccgoimporter/parser.go

    	var list []*types.Var
    	isVariadic := false
    
    	p.expect('(')
    	for p.tok != ')' && p.tok != scanner.EOF {
    		if len(list) > 0 {
    			p.expect(',')
    		}
    		par, variadic := p.parseParam(pkg)
    		list = append(list, par)
    		if variadic {
    			if isVariadic {
    				p.error("... not on final argument")
    			}
    			isVariadic = true
    		}
    	}
    	p.expect(')')
    
    	return types.NewTuple(list...), isVariadic
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go

    	// not valid.
    	//
    	// Example:
    	//  var _ = map[int][...]int{0: {}}
    	BadDotDotDotSyntax
    
    	// NonVariadicDotDotDot occurs when a "..." is used on the final argument to
    	// a non-variadic function.
    	//
    	// Example:
    	//  func printArgs(s []string) {
    	//  	for _, a := range s {
    	//  		println(a)
    	//  	}
    	//  }
    	//
    	//  func f() {
    	//  	s := []string{"a", "b", "c"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 34K bytes
    - Viewed (0)
  10. src/internal/types/errors/codes.go

    	// not valid.
    	//
    	// Example:
    	//  var _ = map[int][...]int{0: {}}
    	BadDotDotDotSyntax
    
    	// NonVariadicDotDotDot occurs when a "..." is used on the final argument to
    	// a non-variadic function.
    	//
    	// Example:
    	//  func printArgs(s []string) {
    	//  	for _, a := range s {
    	//  		println(a)
    	//  	}
    	//  }
    	//
    	//  func f() {
    	//  	s := []string{"a", "b", "c"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:50:48 UTC 2024
    - 33.7K bytes
    - Viewed (0)
Back to top