Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 96 for ArrayType (0.13 sec)

  1. src/encoding/gob/debug.go

    		deb.delta(1)
    		com := deb.common()
    		// Field number 1 is type Id of elem
    		deb.delta(1)
    		id := deb.typeId()
    		// Field number 3 is length
    		deb.delta(1)
    		length := deb.int()
    		wire.ArrayT = &arrayType{com, id, length}
    
    	case 1: // slice type, one field of {{Common}, elem}
    		// Field number 0 is CommonType
    		deb.delta(1)
    		com := deb.common()
    		// Field number 1 is type Id of elem
    		deb.delta(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 09:34:41 UTC 2023
    - 18.3K bytes
    - Viewed (0)
  2. src/go/parser/parser.go

    }
    
    // "[" has already been consumed, and lbrack is its position.
    // If len != nil it is the already consumed array length.
    func (p *parser) parseArrayType(lbrack token.Pos, len ast.Expr) *ast.ArrayType {
    	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}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  3. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KaFe10Resolver.kt

            val returnType = if (resultingDescriptor is ValueParameterDescriptor && resultingDescriptor.isVararg) {
                val arrayType = resultingDescriptor.returnType ?: return null
                analysisContext.builtIns.getArrayElementType(arrayType)
            } else {
                resultingDescriptor.returnType
            }
            val ktReturnType = returnType?.toKtType(analysisContext) ?: return null
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/reflect/TypeResolver.java

          }
          if (type instanceof TypeVariable) {
            return type;
          }
          if (type instanceof GenericArrayType) {
            GenericArrayType arrayType = (GenericArrayType) type;
            return Types.newArrayType(
                notForTypeVariable().capture(arrayType.getGenericComponentType()));
          }
          if (type instanceof ParameterizedType) {
            ParameterizedType parameterizedType = (ParameterizedType) type;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    			obj:    []interface{}{"bar"},
    			oldObj: []interface{}{"baz"},
    			schema: withRule(arrayType("", nil, &stringSchema), `
    				!oldSelf.hasValue() || self[0] == "bar"
    			`),
    		},
    		{
    			name: "array - conditional index",
    			obj:  []interface{}{},
    			oldObj: []interface{}{
    				"baz",
    			},
    			schema: withRule(arrayType("", nil, &stringSchema), `
    				self.size() > 0 || oldSelf[?0].orValue("baz") == "baz"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. src/go/printer/testdata/parser.go

    	if p.trace {
    		defer un(trace(p, "ArrayType"))
    	}
    
    	lbrack := p.expect(token.LBRACK)
    	var len ast.Expr
    	if ellipsisOk && p.tok == token.ELLIPSIS {
    		len = &ast.Ellipsis{p.pos, nil}
    		p.next()
    	} else if p.tok != token.RBRACK {
    		len = p.parseRhs()
    	}
    	p.expect(token.RBRACK)
    	elt := p.parseType()
    
    	return &ast.ArrayType{lbrack, len, elt}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  9. 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)
  10. src/go/ast/filter.go

    	}
    	return b
    }
    
    func filterType(typ Expr, f Filter, export bool) bool {
    	switch t := typ.(type) {
    	case *Ident:
    		return f(t.Name)
    	case *ParenExpr:
    		return filterType(t.X, f, export)
    	case *ArrayType:
    		return filterType(t.Elt, f, export)
    	case *StructType:
    		if filterFieldList(t.Fields, f, export) {
    			t.Incomplete = true
    		}
    		return len(t.Fields.List) > 0
    	case *FuncType:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top