- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 84 for ArrayType (0.13 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
src/reflect/value.go
panic("reflect.Value.Bytes of non-byte array") } if !v.CanAddr() { panic("reflect.Value.Bytes of unaddressable byte array") } p := (*byte)(v.ptr) n := int((*arrayType)(unsafe.Pointer(v.typ())).Len) return unsafe.Slice(p, n) } panic(&ValueError{"reflect.Value.Bytes", v.kind()}) } // runes returns v's underlying value.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:17:41 UTC 2024 - 119.9K bytes - Viewed (0) -
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)