Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 49 for ArrayType (0.45 sec)

  1. src/cmd/cgo/ast.go

    	case *ast.BinaryExpr:
    		f.walk(&n.X, ctxExpr, visit)
    		f.walk(&n.Y, ctxExpr, visit)
    	case *ast.KeyValueExpr:
    		f.walk(&n.Key, ctxExpr, visit)
    		f.walk(&n.Value, ctxExpr, visit)
    
    	case *ast.ArrayType:
    		f.walk(&n.Len, ctxExpr, visit)
    		f.walk(&n.Elt, ctxType, visit)
    	case *ast.StructType:
    		f.walk(n.Fields, ctxField, visit)
    	case *ast.FuncType:
    		if tparams := funcTypeTypeParams(n); tparams != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/rewrite.go

    	case *ast.BinaryExpr:
    		a.apply(n, "X", nil, n.X)
    		a.apply(n, "Y", nil, n.Y)
    
    	case *ast.KeyValueExpr:
    		a.apply(n, "Key", nil, n.Key)
    		a.apply(n, "Value", nil, n.Value)
    
    	// Types
    	case *ast.ArrayType:
    		a.apply(n, "Len", nil, n.Len)
    		a.apply(n, "Elt", nil, n.Elt)
    
    	case *ast.StructType:
    		a.apply(n, "Fields", nil, n.Fields)
    
    	case *ast.FuncType:
    		if tparams := n.TypeParams; tparams != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  3. src/go/printer/testdata/declarations.input

    	}
    	StructField struct {
    		Name, PkgPath, Typ, Tag, Offset int
    	}
    	StructType struct {
    		Fields int
    	}
    	PtrType struct {
    		Elem int
    	}
    	SliceType struct {
    		Elem int
    	}
    	ArrayType struct {
    		Elem, Len int
    	}
    
    	Stktop struct {
    		Stackguard, Stackbase, Gobuf int
    	}
    	Gobuf struct {
    		Sp, Pc, G int
    	}
    	G struct {
    		Stackbase, Sched, Status, Alllink int
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.5K bytes
    - Viewed (0)
  4. src/internal/reflectlite/value.go

    func maplen(unsafe.Pointer) int
    
    // Len returns v's length.
    // It panics if v's Kind is not Array, Chan, Map, Slice, or String.
    func (v Value) Len() int {
    	k := v.kind()
    	switch k {
    	case abi.Array:
    		tt := (*arrayType)(unsafe.Pointer(v.typ()))
    		return int(tt.Len)
    	case abi.Chan:
    		return chanlen(v.pointer())
    	case abi.Map:
    		return maplen(v.pointer())
    	case abi.Slice:
    		// Slice is bigger than a word; assume flagIndir.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  5. src/cmd/fix/fix.go

    		walkBeforeAfter(&n.X, before, after)
    		walkBeforeAfter(&n.Y, before, after)
    	case *ast.KeyValueExpr:
    		walkBeforeAfter(&n.Key, before, after)
    		walkBeforeAfter(&n.Value, before, after)
    
    	case *ast.ArrayType:
    		walkBeforeAfter(&n.Len, before, after)
    		walkBeforeAfter(&n.Elt, before, after)
    	case *ast.StructType:
    		walkBeforeAfter(&n.Fields, before, after)
    	case *ast.FuncType:
    		if n.TypeParams != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 14.6K bytes
    - Viewed (0)
  6. src/reflect/abi.go

    	case Interface:
    		return a.assignIntN(offset, goarch.PtrSize, 2, 0b10)
    	case Slice:
    		return a.assignIntN(offset, goarch.PtrSize, 3, 0b001)
    	case Array:
    		tt := (*arrayType)(unsafe.Pointer(t))
    		switch tt.Len {
    		case 0:
    			// There's nothing to assign, so don't modify
    			// a.steps but succeed so the caller doesn't
    			// try to stack-assign this value.
    			return true
    		case 1:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:08:32 UTC 2024
    - 15K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/typexpr.go

    	case *syntax.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 *syntax.ArrayType:
    		typ := new(Array)
    		setDefType(def, typ)
    		if e.Len != nil {
    			typ.len = check.arrayLength(e.Len)
    		} else {
    			// [...]array
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. src/go/printer/testdata/declarations.golden

    	}
    	StructField	struct {
    		Name, PkgPath, Typ, Tag, Offset int
    	}
    	StructType	struct {
    		Fields int
    	}
    	PtrType	struct {
    		Elem int
    	}
    	SliceType	struct {
    		Elem int
    	}
    	ArrayType	struct {
    		Elem, Len int
    	}
    
    	Stktop	struct {
    		Stackguard, Stackbase, Gobuf int
    	}
    	Gobuf	struct {
    		Sp, Pc, G int
    	}
    	G	struct {
    		Stackbase, Sched, Status, Alllink int
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.2K bytes
    - Viewed (0)
  9. src/go/types/generate_test.go

    		case *ast.ValueSpec:
    			// rewrite type Typ = [...]Type{...} to type Typ = []Type{...}
    			if len(n.Names) == 1 && n.Names[0].Name == "Typ" && len(n.Values) == 1 {
    				n.Values[0].(*ast.CompositeLit).Type.(*ast.ArrayType).Len = nil
    				return false
    			}
    		}
    		return true
    	})
    }
    
    // fixSprintf adds an extra nil argument for the *token.FileSet parameter in sprintf calls.
    func fixSprintf(f *ast.File) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  10. src/runtime/syscall_windows.go

    	case abi.Int64, abi.Uint64:
    		// Only register-assign if the registers are big enough.
    		if goarch.PtrSize == 8 {
    			return p.assignReg(t.Size_, offset)
    		}
    	case abi.Array:
    		at := (*arraytype)(unsafe.Pointer(t))
    		if at.Len == 1 {
    			return p.tryRegAssignArg(at.Elem, offset) // TODO fix when runtime is fully commoned up w/ abi.Type
    		}
    	case abi.Struct:
    		st := (*structtype)(unsafe.Pointer(t))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top