Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 62 for ellipsis (0.21 sec)

  1. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    				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++ {
    			r := TypeExpr(f, pkg, t.Results().At(i).Type())
    			if r == nil {
    				return nil
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. src/go/types/call.go

    	if sig.variadic {
    		if ddd {
    			// variadic_func(a, b, c...)
    			if len(call.Args) == 1 && nargs > 1 {
    				// f()... is not permitted if f() is multi-valued
    				check.errorf(inNode(call, call.Ellipsis), InvalidDotDotDot, "cannot use ... with %d-valued %s", nargs, call.Args[0])
    				return
    			}
    		} else {
    			// variadic_func(a, b, c)
    			if nargs >= npars-1 {
    				// Create custom parameters for arguments: keep
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  3. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h

    GTEST_API_ size_t GetThreadCount();
    
    // Passing non-POD classes through ellipsis (...) crashes the ARM
    // compiler and generates a warning in Sun Studio.  The Nokia Symbian
    // and the IBM XL C/C++ compiler try to instantiate a copy constructor
    // for objects passed through ellipsis (...), failing for uncopyable
    // objects.  We define this to ensure that only POD is passed through
    // ellipsis on these systems.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 67.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/call.go

    	if sig.variadic {
    		if ddd {
    			// variadic_func(a, b, c...)
    			if len(call.ArgList) == 1 && nargs > 1 {
    				// f()... is not permitted if f() is multi-valued
    				//check.errorf(call.Ellipsis, "cannot use ... with %d-valued %s", nargs, call.ArgList[0])
    				check.errorf(call, InvalidDotDotDot, "cannot use ... with %d-valued %s", nargs, call.ArgList[0])
    				return
    			}
    		} else {
    			// variadic_func(a, b, c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  5. src/go/types/generate_test.go

    					if isIdent(n.Args[0], "pos") {
    						pos := n.Args[0].Pos()
    						fun := &ast.SelectorExpr{X: newIdent(pos, "posn"), Sel: newIdent(pos, "Pos")}
    						arg := &ast.CallExpr{Fun: fun, Lparen: pos, Args: nil, Ellipsis: token.NoPos, Rparen: pos}
    						n.Args[0] = arg
    						return false
    					}
    				case "addf":
    					// rewrite err.addf(pos, ...) to err.addf(posn, ...)
    					if isIdent(n.Args[0], "pos") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  6. src/net/netip/netip_test.go

    		"fe80::1%",
    		// IPv6 (without ellipsis) with too many fields for trailing embedded IPv4.
    		"ffff:ffff:ffff:ffff:ffff:ffff:ffff:192.168.140.255",
    		// IPv6 (with ellipsis) with too many fields for trailing embedded IPv4.
    		"ffff::ffff:ffff:ffff:ffff:ffff:ffff:192.168.140.255",
    		// IPv6 with invalid embedded IPv4.
    		"::ffff:192.168.140.bad",
    		// IPv6 with multiple ellipsis ::.
    		"fe80::1::1",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      dense->strides.resize(dense->dims);
      dense->begin_mask = 0;
      dense->end_mask = 0;
      dense->shrink_axis_mask = 0;
    
      // Count number of new_axis after ellipsis. This helps in calculating the
      // number of dimensions ellipsis represents in the sparse spec.
      bool ellipsis_seen = false;
      int num_new_axis_after_ellipsis = 0;
      for (int sparse_index = 0; sparse_index < sparse.dims; ++sparse_index) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  8. src/go/types/expr.go

    	x.typ = Typ[Invalid]
    
    	switch e := e.(type) {
    	case *ast.BadExpr:
    		goto Error // error was reported before
    
    	case *ast.Ident:
    		check.ident(x, e, nil, false)
    
    	case *ast.Ellipsis:
    		// ellipses are handled explicitly where they are legal
    		// (array composite literals and parameter lists)
    		check.error(e, BadDotDotDotSyntax, "invalid use of '...'")
    		goto Error
    
    	case *ast.BasicLit:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/asmdecl/asmdecl.go

    		argnum := 0
    		for _, fld := range list {
    			t := pass.TypesInfo.Types[fld.Type].Type
    
    			// Work around https://golang.org/issue/28277.
    			if t == nil {
    				if ell, ok := fld.Type.(*ast.Ellipsis); ok {
    					t = types.NewSlice(pass.TypesInfo.Types[ell.Elt].Type)
    				}
    			}
    
    			align := int(arch.sizes.Alignof(t))
    			size := int(arch.sizes.Sizeof(t))
    			offset += -offset & (align - 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  10. cmd/endpoint-ellipses.go

    	"github.com/minio/minio/internal/config"
    	"github.com/minio/pkg/v3/ellipses"
    	"github.com/minio/pkg/v3/env"
    )
    
    // This file implements and supports ellipses pattern for
    // `minio server` command line arguments.
    
    // Endpoint set represents parsed ellipses values, also provides
    // methods to get the sets of endpoints.
    type endpointSet struct {
    	argPatterns []ellipses.ArgPattern
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 14.7K bytes
    - Viewed (0)
Back to top