Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 102 for ArrayType (0.33 sec)

  1. 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)
  2. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(Tag).GoString", Method, 0},
    		{"(Tag).String", Method, 0},
    		{"AddrType", Type, 0},
    		{"AddrType.BasicType", Field, 0},
    		{"ArrayType", Type, 0},
    		{"ArrayType.CommonType", Field, 0},
    		{"ArrayType.Count", Field, 0},
    		{"ArrayType.StrideBitSize", Field, 0},
    		{"ArrayType.Type", Field, 0},
    		{"Attr", Type, 0},
    		{"AttrAbstractOrigin", Const, 0},
    		{"AttrAccessibility", Const, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  3. src/go/doc/reader.go

    		var typ *namedType // type to associate the function with
    		numResultTypes := 0
    		for _, res := range fun.Type.Results.List {
    			factoryType := res.Type
    			if t, ok := factoryType.(*ast.ArrayType); ok {
    				// We consider functions that return slices or arrays of type
    				// T (or pointers to T) as factory functions of T.
    				factoryType = t.Elt
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  4. src/go/printer/nodes.go

    // The result is false if x could be a type element OR an ordinary (value) expression.
    func isTypeElem(x ast.Expr) bool {
    	switch x := x.(type) {
    	case *ast.ArrayType, *ast.StructType, *ast.FuncType, *ast.InterfaceType, *ast.MapType, *ast.ChanType:
    		return true
    	case *ast.UnaryExpr:
    		return x.Op == token.TILDE
    	case *ast.BinaryExpr:
    		return isTypeElem(x.X) || isTypeElem(x.Y)
    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/cmd/doc/pkg.go

    	case *ast.CompositeLit:
    		typ := pkg.oneLineNodeDepth(n.Type, depth)
    		if len(n.Elts) == 0 {
    			return fmt.Sprintf("%s{}", typ)
    		}
    		return fmt.Sprintf("%s{ %s }", typ, dotDotDot)
    
    	case *ast.ArrayType:
    		length := pkg.oneLineNodeDepth(n.Len, depth)
    		element := pkg.oneLineNodeDepth(n.Elt, depth)
    		return fmt.Sprintf("[%s]%s", length, element)
    
    	case *ast.MapType:
    		key := pkg.oneLineNodeDepth(n.Key, depth)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
  6. src/cmd/internal/dwarf/dwarf.go

    			{DW_AT_name, DW_FORM_string},
    			{DW_AT_encoding, DW_FORM_data1},
    			{DW_AT_byte_size, DW_FORM_data1},
    			{DW_AT_go_kind, DW_FORM_data1},
    			{DW_AT_go_runtime_type, DW_FORM_addr},
    		},
    	},
    
    	/* ARRAYTYPE */
    	// child is subrange with upper bound
    	{
    		DW_TAG_array_type,
    		DW_CHILDREN_yes,
    		[]dwAttrForm{
    			{DW_AT_name, DW_FORM_string},
    			{DW_AT_type, DW_FORM_ref_addr},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 43K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/dwarf_test.go

    	defer f.Close()
    
    	dwarf, err := f.DWARF()
    	if err != nil {
    		t.Fatalf("error reading DWARF: %v", err)
    	}
    
    	want := map[string]bool{
    		"internal/abi.Type":          true,
    		"internal/abi.ArrayType":     true,
    		"internal/abi.ChanType":      true,
    		"internal/abi.FuncType":      true,
    		"internal/abi.MapType":       true,
    		"internal/abi.PtrType":       true,
    		"internal/abi.SliceType":     true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 01:38:11 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  8. 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)
  9. src/cmd/link/internal/ld/dwarf.go

    		"type:runtime.hchan":             nil,
    	}
    
    	// Needed by the prettyprinter code for interface inspection.
    	for _, typ := range []string{
    		"type:internal/abi.Type",
    		"type:internal/abi.ArrayType",
    		"type:internal/abi.ChanType",
    		"type:internal/abi.FuncType",
    		"type:internal/abi.MapType",
    		"type:internal/abi.PtrType",
    		"type:internal/abi.SliceType",
    		"type:internal/abi.StructType",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  10. doc/go1.17_spec.html

    or specified using a <i>type literal</i>, which composes a type from existing types.
    </p>
    
    <pre class="ebnf">
    Type      = TypeName | TypeLit | "(" Type ")" .
    TypeName  = identifier | QualifiedIdent .
    TypeLit   = ArrayType | StructType | PointerType | FunctionType | InterfaceType |
    	    SliceType | MapType | ChannelType .
    </pre>
    
    <p>
    The language <a href="#Predeclared_identifiers">predeclares</a> certain type names.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
Back to top