Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 65 for ellipsis (0.12 sec)

  1. src/go/types/typexpr.go

    		if _, ok := e.Len.(*ast.Ellipsis); ok {
    			check.error(e.Len, BadDotDotDotSyntax, "invalid use of [...] array (outside a composite literal)")
    			typ.len = -1
    		} else {
    			typ.len = check.arrayLength(e.Len)
    		}
    		typ.elem = check.varType(e.Elt)
    		if typ.len >= 0 {
    			return typ
    		}
    		// report error if we encountered [...]
    
    	case *ast.Ellipsis:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/rulegen.go

    				log.Fatalf("%s: found ellipsis in rule, but there are other rules with the same op", r.Loc)
    			}
    		}
    		return "", false
    	}
    	rule := rules[0]
    	match, cond, result := rule.parse()
    	if cond != "" || !isEllipsisValue(match) || !isEllipsisValue(result) {
    		if strings.Contains(rule.Rule, "...") {
    			log.Fatalf("%s: found ellipsis in non-ellipsis rule", rule.Loc)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/query-params-str-validations.md

        ```
    
    !!! info
        Falls Sie das `...` bisher noch nicht gesehen haben: Es ist ein spezieller einzelner Wert, <a href="https://docs.python.org/3/library/constants.html#Ellipsis" class="external-link" target="_blank">Teil von Python und wird „Ellipsisgenannt</a> (Deutsch: Ellipse).
    
        Es wird von Pydantic und FastAPI verwendet, um explizit zu deklarieren, dass ein Wert erforderlich ist.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 17:58:59 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  4. 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)
  5. docs/em/docs/tutorial/query-params-str-validations.md

    ```Python hl_lines="7"
    {!../../../docs_src/query_params_str_validations/tutorial006b.py!}
    ```
    
    !!! info
        🚥 👆 🚫 👀 👈 `...` ⏭: ⚫️ 🎁 👁 💲, ⚫️ <a href="https://docs.python.org/3/library/constants.html#Ellipsis" class="external-link" target="_blank">🍕 🐍 &amp; 🤙 "❕"</a>.
    
        ⚫️ ⚙️ Pydantic &amp; FastAPI 🎯 📣 👈 💲 ✔.
    
    👉 🔜 ➡️ **FastAPI** 💭 👈 👉 🔢 ✔.
    
    ### ✔ ⏮️ `None`
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  6. src/go/types/signature.go

    	if list == nil {
    		return
    	}
    
    	var named, anonymous bool
    	for i, field := range list.List {
    		ftype := field.Type
    		if t, _ := ftype.(*ast.Ellipsis); t != nil {
    			ftype = t.Elt
    			if variadicOk && i == len(list.List)-1 && len(field.Names) <= 1 {
    				variadic = true
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 13K bytes
    - Viewed (0)
  7. src/cmd/vendor/github.com/google/pprof/internal/graph/dotgraph.go

    	infoCopy.Name = escapeForDot(ShortenFunctionName(infoCopy.Name))
    	infoCopy.Name = strings.Replace(infoCopy.Name, "::", `\n`, -1)
    	// Go type parameters are reported as "[...]" by Go pprof profiles.
    	// Keep this ellipsis rather than replacing with newlines below.
    	infoCopy.Name = strings.Replace(infoCopy.Name, "[...]", "[…]", -1)
    	infoCopy.Name = strings.Replace(infoCopy.Name, ".", `\n`, -1)
    	if infoCopy.File != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 09 20:51:42 UTC 2022
    - 14.8K bytes
    - Viewed (0)
  8. 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)
  9. src/go/scanner/scanner_test.go

    	{token.ASSIGN, "=", operator},
    	{token.NOT, "!", operator},
    
    	{token.NEQ, "!=", operator},
    	{token.LEQ, "<=", operator},
    	{token.GEQ, ">=", operator},
    	{token.DEFINE, ":=", operator},
    	{token.ELLIPSIS, "...", operator},
    
    	{token.LPAREN, "(", operator},
    	{token.LBRACK, "[", operator},
    	{token.LBRACE, "{", operator},
    	{token.COMMA, ",", operator},
    	{token.PERIOD, ".", operator},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 15:38:31 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  10. 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)
Back to top