Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for ArrayType (0.12 sec)

  1. 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)
  2. 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)
  3. src/cmd/cgo/gcc.go

    			p.typedefList = append(p.typedefList, typedefInfo{dt.Name, pos})
    			p.recordTypedefs1(dt.Type, pos, visited)
    		}
    	case *dwarf.PtrType:
    		p.recordTypedefs1(dt.Type, pos, visited)
    	case *dwarf.ArrayType:
    		p.recordTypedefs1(dt.Type, pos, visited)
    	case *dwarf.QualType:
    		p.recordTypedefs1(dt.Type, pos, visited)
    	case *dwarf.FuncType:
    		p.recordTypedefs1(dt.ReturnType, pos, visited)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  4. src/reflect/type.go

    const (
    	RecvDir ChanDir             = 1 << iota // <-chan
    	SendDir                                 // chan<-
    	BothDir = RecvDir | SendDir             // chan
    )
    
    // arrayType represents a fixed array type.
    type arrayType = abi.ArrayType
    
    // chanType represents a channel type.
    type chanType = abi.ChanType
    
    // funcType represents a function type.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    		Args:         types,
    		ForLocalName: false, // may be set later in encoding
    	}
    }
    
    // arrayType parses:
    //
    //	<array-type> ::= A <(positive dimension) number> _ <(element) type>
    //	             ::= A [<(dimension) expression>] _ <(element) type>
    func (st *state) arrayType(isCast bool) AST {
    	st.checkChar('A')
    
    	if len(st.str) == 0 {
    		st.fail("missing array dimension")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
  6. src/go/types/expr.go

    			// Check for them here so we don't have to handle ... in general.
    			if atyp, _ := e.Type.(*ast.ArrayType); atyp != nil && atyp.Len != nil {
    				if ellip, _ := atyp.Len.(*ast.Ellipsis); ellip != nil && ellip.Elt == nil {
    					// We have an "open" [...]T array type.
    					// Create a new ArrayType with unknown length (-1)
    					// and finish setting it up after analyzing the literal.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/expr.go

    			// [...]T array types may only appear with composite literals.
    			// Check for them here so we don't have to handle ... in general.
    			if atyp, _ := e.Type.(*syntax.ArrayType); atyp != nil && atyp.Len == nil {
    				// We have an "open" [...]T array type.
    				// Create a new ArrayType with unknown length (-1)
    				// and finish setting it up after analyzing the literal.
    				typ = &Array{len: -1, elem: check.varType(atyp.Elem)}
    				base = typ
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertFalse(
            from.getType() + " shouldn't be a subtype of " + to.getType(), from.isSubtypeOf(to));
      }
    
      private static void assertHasArrayInterfaces(TypeToken<?> arrayType) {
        assertEquals(arrayInterfaces(), ImmutableSet.copyOf(arrayType.getGenericInterfaces()));
      }
    
      private static ImmutableSet<TypeToken<?>> arrayInterfaces() {
        ImmutableSet.Builder<TypeToken<?>> builder = ImmutableSet.builder();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertFalse(
            from.getType() + " shouldn't be a subtype of " + to.getType(), from.isSubtypeOf(to));
      }
    
      private static void assertHasArrayInterfaces(TypeToken<?> arrayType) {
        assertEquals(arrayInterfaces(), ImmutableSet.copyOf(arrayType.getGenericInterfaces()));
      }
    
      private static ImmutableSet<TypeToken<?>> arrayInterfaces() {
        ImmutableSet.Builder<TypeToken<?>> builder = ImmutableSet.builder();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  10. src/cmd/cgo/out.go

    func (p *Package) cgoType(e ast.Expr) *Type {
    	switch t := e.(type) {
    	case *ast.StarExpr:
    		x := p.cgoType(t.X)
    		return &Type{Size: p.PtrSize, Align: p.PtrSize, C: c("%s*", x.C)}
    	case *ast.ArrayType:
    		if t.Len == nil {
    			// Slice: pointer, len, cap.
    			return &Type{Size: p.PtrSize * 3, Align: p.PtrSize, C: c("GoSlice")}
    		}
    		// Non-slice array types are not supported.
    	case *ast.StructType:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
Back to top