Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for elts (4.63 sec)

  1. src/go/types/expr.go

    				goto Error
    			}
    			if len(e.Elts) == 0 {
    				break
    			}
    			// Convention for error messages on invalid struct literals:
    			// we mention the struct type only if it clarifies the error
    			// (e.g., a duplicate field error doesn't need the struct type).
    			fields := utyp.fields
    			if _, ok := e.Elts[0].(*ast.KeyValueExpr); ok {
    				// all elements must have keys
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  2. src/go/printer/testdata/parser.go

    	if p.trace {
    		defer un(trace(p, "LiteralValue"))
    	}
    
    	lbrace := p.expect(token.LBRACE)
    	var elts []ast.Expr
    	p.exprLev++
    	if p.tok != token.RBRACE {
    		elts = p.parseElementList()
    	}
    	p.exprLev--
    	rbrace := p.expect(token.RBRACE)
    	return &ast.CompositeLit{typ, lbrace, elts, rbrace}
    }
    
    // checkExpr checks that x is an expression (and not a type).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  3. src/go/parser/parser.go

    		defer un(trace(p, "LiteralValue"))
    	}
    
    	lbrace := p.expect(token.LBRACE)
    	var elts []ast.Expr
    	p.exprLev++
    	if p.tok != token.RBRACE {
    		elts = p.parseElementList()
    	}
    	p.exprLev--
    	rbrace := p.expectClosing(token.RBRACE, "composite literal")
    	return &ast.CompositeLit{Type: typ, Lbrace: lbrace, Elts: elts, Rbrace: rbrace}
    }
    
    func (p *parser) parsePrimaryExpr(x ast.Expr) ast.Expr {
    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/go/printer/nodes.go

    		p.exprList(x.Lbrace, x.Elts, 1, commaTerm, x.Rbrace, x.Incomplete)
    		// do not insert extra line break following a /*-style comment
    		// before the closing '}' as it might break the code if there
    		// is no trailing ','
    		mode := noExtraLinebreak
    		// do not insert extra blank following a /*-style comment
    		// before the closing '}' unless the literal is empty
    		if len(x.Elts) > 0 {
    			mode |= noExtraBlank
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  5. src/crypto/tls/handshake_messages.go

    				exts.AddUint8LengthPrefixed(func(exts *cryptobyte.Builder) {
    					exts.AddBytes([]byte(m.alpnProtocol))
    				})
    			})
    		})
    	}
    	if len(m.scts) > 0 {
    		exts.AddUint16(extensionSCT)
    		exts.AddUint16LengthPrefixed(func(exts *cryptobyte.Builder) {
    			exts.AddUint16LengthPrefixed(func(exts *cryptobyte.Builder) {
    				for _, sct := range m.scts {
    					exts.AddUint16LengthPrefixed(func(exts *cryptobyte.Builder) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/envoyfilter/listener_patch_test.go

    				Value: buildPatchStruct(`
    					{"transport_socket":{
    						"name":"transport_sockets.alts",
    						"typed_config":{
    							"@type":"type.googleapis.com/udpa.type.v1.TypedStruct",
                  "type_url": "type.googleapis.com/envoy.extensions.transport_sockets.alts.v3.Alts",
    							"value":{"handshaker_service":"1.2.3.4"}}}}`),
    			},
    		},
    		// Patch custom TLS type to a FC without TLS already set
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    		{think: 0, pad: time.Second, finalSeats: 1, conc: 2, nClients: 1},
    		{think: 0, pad: time.Second, finalSeats: 2, conc: 2, nClients: 1, exp: flts(0.5)},
    		{think: 0, pad: time.Second, finalSeats: 1, conc: 1, nClients: 2, exp: flts(0.25, 0.25)},
    		{think: 0, pad: time.Second, finalSeats: 1, conc: 2, nClients: 2, exp: flts(0.5, 0.5)},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
  8. src/net/http/fs_test.go

    	if !f.fi.dir {
    		return nil, fs.ErrInvalid
    	}
    	var fis []fs.FileInfo
    
    	limit := f.entpos + count
    	if count <= 0 || limit > len(f.fi.ents) {
    		limit = len(f.fi.ents)
    	}
    	for ; f.entpos < limit; f.entpos++ {
    		fis = append(fis, f.fi.ents[f.entpos])
    	}
    
    	if len(fis) == 0 && count > 0 {
    		return fis, io.EOF
    	} else {
    		return fis, nil
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  9. src/crypto/x509/x509.go

    				if err != nil {
    					return nil, err
    				}
    
    				exts = append(exts, pkix.Extension{
    					Id:    oidExtensionReasonCode,
    					Value: reasonBytes,
    				})
    			}
    
    			if len(exts) > 0 {
    				rc.Extensions = exts
    			}
    			revokedCerts[i] = rc
    		}
    	}
    
    	aki, err := asn1.Marshal(authKeyId{Id: issuer.SubjectKeyId})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  10. src/index/suffixarray/sais2.go

    	//	- position i is type S if text[i] < text[i+1], or if text[i] == text[i+1] && i+1 is type S.
    	//	- position i is type L if text[i] > text[i+1], or if text[i] == text[i+1] && i+1 is type L.
    	//
    	// The backward scan lets us maintain the current type,
    	// update it when we see c0 != c1, and otherwise leave it alone.
    	// We want to identify all S positions with a preceding L.
    	// Position len(text) is one such position by definition, but we have
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 23:57:18 UTC 2024
    - 52.3K bytes
    - Viewed (0)
Back to top