Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 96 for ArrayType (0.43 sec)

  1. src/cmd/compile/internal/syntax/nodes_test.go

    	// ListExpr: tested via multi-value const/var declarations
    }
    
    var types = []test{
    	{"Operation", `@*T`},
    	{"Operation", `@*struct{}`},
    
    	{"ArrayType", `@[10]T`},
    	{"ArrayType", `@[...]T`},
    
    	{"SliceType", `@[]T`},
    	{"DotsType", `@...T`},
    	{"StructType", `@struct{}`},
    	{"InterfaceType", `@interface{}`},
    	{"FuncType", `func@()`},
    	{"MapType", `@map[T]T`},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 18:45:06 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              }
            }
          }
        }
        return null;
      }
    
      private static <T> T createEmptyArray(Class<T> arrayType) {
        // getComponentType() is non-null because we call createEmptyArray only with an array type.
        return arrayType.cast(Array.newInstance(requireNonNull(arrayType.getComponentType()), 0));
      }
    
      // Internal implementations of some classes, with public default constructor that get() needs.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 21K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              }
            }
          }
        }
        return null;
      }
    
      private static <T> T createEmptyArray(Class<T> arrayType) {
        // getComponentType() is non-null because we call createEmptyArray only with an array type.
        return arrayType.cast(Array.newInstance(requireNonNull(arrayType.getComponentType()), 0));
      }
    
      // Internal implementations of some classes, with public default constructor that get() needs.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/schemas_test.go

    						},
    					},
    				},
    			},
    		},
    	}
    	return ts
    }
    
    func arraySchema(arrayType, format string, maxItems *int64) *schema.Structural {
    	return &schema.Structural{
    		Generic: schema.Generic{
    			Type: "array",
    		},
    		Items: &schema.Structural{
    			Generic: schema.Generic{
    				Type: arrayType,
    			},
    			ValueValidation: &schema.ValueValidation{
    				Format: format,
    			},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 14K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/cel/openapi/schemas_test.go

    						},
    					},
    				}},
    			}}}
    	return ts
    }
    
    func arraySchema(arrayType, format string, maxItems *int64) *spec.Schema {
    	return &spec.Schema{
    		SchemaProps: spec.SchemaProps{
    			Type: []string{"array"},
    			Items: &spec.SchemaOrArray{Schema: &spec.Schema{
    				SchemaProps: spec.SchemaProps{
    					Type:   []string{arrayType},
    					Format: format,
    				}}},
    			MaxItems: maxItems,
    		},
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 14 17:18:27 UTC 2022
    - 13K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go

    	}
    	if ruleType == "int-or-string" {
    		return "", "", true
    	}
    	return ruleType, "", false
    }
    
    func genArrayWithRule(arrayType, rule string) func(maxItems *int64) *schema.Structural {
    	passedType, passedFormat, xIntString := parseRuleType(arrayType)
    	return func(maxItems *int64) *schema.Structural {
    		return &schema.Structural{
    			Generic: schema.Generic{
    				Type: "array",
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  7. src/go/types/exprstring.go

    		WriteExpr(buf, x.X)
    
    	case *ast.BinaryExpr:
    		WriteExpr(buf, x.X)
    		buf.WriteByte(' ')
    		buf.WriteString(x.Op.String())
    		buf.WriteByte(' ')
    		WriteExpr(buf, x.Y)
    
    	case *ast.ArrayType:
    		buf.WriteByte('[')
    		if x.Len != nil {
    			WriteExpr(buf, x.Len)
    		}
    		buf.WriteByte(']')
    		WriteExpr(buf, x.Elt)
    
    	case *ast.StructType:
    		buf.WriteString("struct{")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 19:31:44 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/syntax/parser.go

    				d.Type = p.typeOrNil()
    			} else {
    				// d.Name "[" pname "]" ...
    				// d.Name "[" x ...
    				d.Type = p.arrayType(pos, x)
    			}
    		case _Rbrack:
    			// d.Name "[" "]" ...
    			p.next()
    			d.Type = p.sliceType(pos)
    		default:
    			// d.Name "[" ...
    			d.Type = p.arrayType(pos, nil)
    		}
    	} else {
    		d.Alias = p.gotAssign()
    		d.Type = p.typeOrNil()
    	}
    
    	if d.Type == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/ast/inspector/typeof.go

    	// Fast path: nearly half of all nodes are identifiers.
    	if _, ok := n.(*ast.Ident); ok {
    		return 1 << nIdent
    	}
    
    	// These cases include all nodes encountered by ast.Inspect.
    	switch n.(type) {
    	case *ast.ArrayType:
    		return 1 << nArrayType
    	case *ast.AssignStmt:
    		return 1 << nAssignStmt
    	case *ast.BadDecl:
    		return 1 << nBadDecl
    	case *ast.BadExpr:
    		return 1 << nBadExpr
    	case *ast.BadStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  10. src/go/ast/ast.go

    const (
    	SEND ChanDir = 1 << iota
    	RECV
    )
    
    // A type is represented by a tree consisting of one
    // or more of the following type-specific expression
    // nodes.
    type (
    	// An ArrayType node represents an array or slice type.
    	ArrayType struct {
    		Lbrack token.Pos // position of "["
    		Len    Expr      // Ellipsis node for [...]T array types, nil for slice types
    		Elt    Expr      // element type
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
Back to top