Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/go/printer/testdata/parser.go

    	}
    
    	lparen := p.expect(token.LPAREN)
    	p.exprLev++
    	var list []ast.Expr
    	var ellipsis token.Pos
    	for p.tok != token.RPAREN && p.tok != token.EOF && !ellipsis.IsValid() {
    		list = append(list, p.parseRhs())
    		if p.tok == token.ELLIPSIS {
    			ellipsis = p.pos
    			p.next()
    		}
    		if p.tok != token.COMMA {
    			break
    		}
    		p.next()
    	}
    	p.exprLev--
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  2. src/net/netip/netip.go

    	}
    
    	// If didn't parse enough, expand ellipsis.
    	if i < 16 {
    		if ellipsis < 0 {
    			return Addr{}, parseAddrError{in: in, msg: "address string too short"}
    		}
    		n := 16 - i
    		for j := i - 1; j >= ellipsis; j-- {
    			ip[j+n] = ip[j]
    		}
    		clear(ip[ellipsis : ellipsis+n])
    	} else if ellipsis >= 0 {
    		// Ellipsis must represent at least one 0 group.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  3. src/go/parser/parser.go

    	if p.trace {
    		defer un(trace(p, "ArrayType"))
    	}
    
    	if len == nil {
    		p.exprLev++
    		// always permit ellipsis for more fault-tolerant parsing
    		if p.tok == token.ELLIPSIS {
    			len = &ast.Ellipsis{Ellipsis: p.pos}
    			p.next()
    		} else if p.tok != token.RBRACK {
    			len = p.parseRhs()
    		}
    		p.exprLev--
    	}
    	if p.tok == token.COMMA {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  4. src/cmd/gofmt/rewrite.go

    		return true
    	case callExprType:
    		// For calls, the Ellipsis fields (token.Pos) must
    		// match since that is how f(x) and f(x...) are different.
    		// Check them here but fall through for the remaining fields.
    		p := pattern.Interface().(*ast.CallExpr)
    		v := val.Interface().(*ast.CallExpr)
    		if p.Ellipsis.IsValid() != v.Ellipsis.IsValid() {
    			return false
    		}
    	}
    
    	p := reflect.Indirect(pattern)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:07:13 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  5. src/go/token/token.go

    	LOR   // ||
    	ARROW // <-
    	INC   // ++
    	DEC   // --
    
    	EQL    // ==
    	LSS    // <
    	GTR    // >
    	ASSIGN // =
    	NOT    // !
    
    	NEQ      // !=
    	LEQ      // <=
    	GEQ      // >=
    	DEFINE   // :=
    	ELLIPSIS // ...
    
    	LPAREN // (
    	LBRACK // [
    	LBRACE // {
    	COMMA  // ,
    	PERIOD // .
    
    	RPAREN    // )
    	RBRACK    // ]
    	RBRACE    // }
    	SEMICOLON // ;
    	COLON     // :
    	operator_end
    
    	keyword_beg
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/internal/driver/html/stacks.css

    .submenu { z-index: 3; }
    /* Right-click menu */
    #action-menu {
      max-width: 15em;
    }
    /* Right-click menu title */
    #action-title {
      display: block;
      padding: 0.5em 1em;
      background: #888;
      text-overflow: ellipsis;
      overflow: hidden;
    }
    /* Internal canvas used to measure text size when picking fonts */
    #textsizer {
      position: absolute;
      bottom: -100px;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 16:39:48 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  7. src/net/netip/fuzz_test.go

    	"::ffff:0:0%0",
    	// 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: Mon Dec 20 23:46:23 UTC 2021
    - 10.5K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/ast/inspector/typeof.go

    		return 1 << nCommentGroup
    	case *ast.CompositeLit:
    		return 1 << nCompositeLit
    	case *ast.DeclStmt:
    		return 1 << nDeclStmt
    	case *ast.DeferStmt:
    		return 1 << nDeferStmt
    	case *ast.Ellipsis:
    		return 1 << nEllipsis
    	case *ast.EmptyStmt:
    		return 1 << nEmptyStmt
    	case *ast.ExprStmt:
    		return 1 << nExprStmt
    	case *ast.Field:
    		return 1 << nField
    	case *ast.FieldList:
    		return 1 << nFieldList
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  9. docs/pt/docs/tutorial/query-params-str-validations.md

    ```
    
    !!! info "Informação"
        Se você nunca viu os `...` antes: é um valor único especial, faz <a href="https://docs.python.org/3/library/constants.html#Ellipsis" class="external-link" target="_blank">parte do Python e é chamado "Ellipsis"</a>.
    
    Dessa forma o **FastAPI** saberá que o parâmetro é obrigatório.
    
    ## Lista de parâmetros de consulta / múltiplos valores
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  10. src/cmd/gofmt/simplify.go

    			break
    		}
    		if s, _ := n.X.(*ast.Ident); s != nil {
    			// the array/slice object is a single identifier
    			if call, _ := n.High.(*ast.CallExpr); call != nil && len(call.Args) == 1 && !call.Ellipsis.IsValid() {
    				// the high expression is a function call with a single argument
    				if fun, _ := call.Fun.(*ast.Ident); fun != nil && fun.Name == "len" {
    					// the function called is "len"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 20:06:14 UTC 2022
    - 4.8K bytes
    - Viewed (0)
Back to top