Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 49 of 49 for ArrayType (0.31 sec)

  1. src/go/types/typexpr.go

    	case *ast.ParenExpr:
    		// Generic types must be instantiated before they can be used in any form.
    		// Consequently, generic types cannot be parenthesized.
    		return check.definedType(e.X, def)
    
    	case *ast.ArrayType:
    		if e.Len == nil {
    			typ := new(Slice)
    			setDefType(def, typ)
    			typ.elem = check.varType(e.Elt)
    			return typ
    		}
    
    		typ := new(Array)
    		setDefType(def, typ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/deadcode.go

    		off += arch.PtrSize
    	case abi.Func: // reflect.funcType
    		off += arch.PtrSize // 4 bytes, pointer aligned
    	case abi.Slice: // reflect.sliceType
    		off += arch.PtrSize
    	case abi.Array: // reflect.arrayType
    		off += 3 * arch.PtrSize
    	case abi.Chan: // reflect.chanType
    		off += 2 * arch.PtrSize
    	case abi.Map: // reflect.mapType
    		off += 4*arch.PtrSize + 8
    	case abi.Interface: // reflect.interfaceType
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. src/cmd/fix/typecheck.go

    					switch st := s.Type.(type) {
    					case *ast.StructType:
    						for _, f := range st.Fields.List {
    							for _, n := range f.Names {
    								t.Field[n.Name] = gofmt(f.Type)
    							}
    						}
    					case *ast.ArrayType, *ast.StarExpr, *ast.MapType:
    						t.Def = gofmt(st)
    					}
    				}
    			}
    		}
    	}
    
    	typecheck1(cfg1, f, typeof, assign)
    	return typeof, assign
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 22:02:42 UTC 2022
    - 20.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/printer.go

    			p.print(n.X, blank, n.Op, blank, n.Y)
    		}
    
    	case *KeyValueExpr:
    		p.print(n.Key, _Colon, blank, n.Value)
    
    	case *ListExpr:
    		p.printExprList(n.ElemList)
    
    	case *ArrayType:
    		var len interface{} = _DotDotDot
    		if n.Len != nil {
    			len = n.Len
    		}
    		p.print(_Lbrack, len, _Rbrack, n.Elem)
    
    	case *SliceType:
    		p.print(_Lbrack, _Rbrack, n.Elem)
    
    	case *DotsType:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 07:17:27 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  5. src/runtime/cgocall.go

    	if !t.Pointers() || p == nil {
    		// If the type has no pointers there is nothing to do.
    		return
    	}
    
    	switch t.Kind_ & abi.KindMask {
    	default:
    		throw("can't happen")
    	case abi.Array:
    		at := (*arraytype)(unsafe.Pointer(t))
    		if !indir {
    			if at.Len != 1 {
    				throw("can't happen")
    			}
    			cgoCheckArg(at.Elem, p, at.Elem.Kind_&abi.KindDirectIface == 0, top, msg)
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
Back to top