- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 47 for ArrayType (0.14 sec)
-
src/cmd/compile/internal/syntax/positions.go
continue } return n.Pos() case *CallExpr: m = n.Fun case *ListExpr: if len(n.ElemList) > 0 { m = n.ElemList[0] continue } return n.Pos() // types // case *ArrayType: // case *SliceType: // case *DotsType: // case *StructType: // case *Field: // case *InterfaceType: // case *FuncType: // case *MapType: // case *ChanType: // statements
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 17:49:19 UTC 2024 - 6.5K bytes - Viewed (0) -
src/internal/reflectlite/type.go
// Using a pointer to this struct reduces the overall size required // to describe a non-defined type with no methods. type uncommonType = abi.UncommonType // arrayType represents a fixed array type. type arrayType = abi.ArrayType // chanType represents a channel type. type chanType = abi.ChanType type funcType = abi.FuncType type interfaceType = abi.InterfaceType
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:01:54 UTC 2024 - 16.2K bytes - Viewed (0) -
src/unique/clone.go
} } } // buildArrayCloneSeq populates a cloneSeq for an abi.Type that has Kind abi.Array. func buildArrayCloneSeq(typ *abi.Type, seq *cloneSeq, baseOffset uintptr) { atyp := typ.ArrayType() etyp := atyp.Elem offset := baseOffset for range atyp.Len { switch etyp.Kind() { case abi.String: seq.stringOffsets = append(seq.stringOffsets, offset) case abi.Struct:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun May 05 00:24:21 UTC 2024 - 2.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go
if elt == nil { return nil } return &ast.ArrayType{ Len: &ast.BasicLit{ Kind: token.INT, Value: fmt.Sprintf("%d", t.Len()), }, Elt: elt, } case *types.Slice: elt := TypeExpr(f, pkg, t.Elem()) if elt == nil { return nil } return &ast.ArrayType{ Elt: elt, } case *types.Map: key := TypeExpr(f, pkg, t.Key())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 11.7K bytes - Viewed (0) -
src/internal/reflectlite/reflect_mirror_test.go
import ( "fmt" "go/ast" "go/parser" "go/token" "io/fs" "os" "path/filepath" "runtime" "strings" "sync" "testing" ) var typeNames = []string{ "uncommonType", "arrayType", "chanType", "funcType", "interfaceType", "ptrType", "sliceType", "structType", } type visitor struct { m map[string]map[string]bool } func newVisitor() visitor { v := visitor{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 21:11:15 UTC 2024 - 2.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
} } } } return null; } private static <T> T createEmptyArray(Class<T> arrayType) { // getComponentType() is non-null because we call createEmptyArray only with an array type. return arrayType.cast(Array.newInstance(requireNonNull(arrayType.getComponentType()), 0)); } // Internal implementations of some classes, with public default constructor that get() needs.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 17 16:33:44 UTC 2024 - 21K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
} } } } return null; } private static <T> T createEmptyArray(Class<T> arrayType) { // getComponentType() is non-null because we call createEmptyArray only with an array type. return arrayType.cast(Array.newInstance(requireNonNull(arrayType.getComponentType()), 0)); } // Internal implementations of some classes, with public default constructor that get() needs.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 17 16:33:44 UTC 2024 - 20.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/schemas_test.go
}, }, }, }, }, } return ts } func arraySchema(arrayType, format string, maxItems *int64) *schema.Structural { return &schema.Structural{ Generic: schema.Generic{ Type: "array", }, Items: &schema.Structural{ Generic: schema.Generic{ Type: arrayType, }, ValueValidation: &schema.ValueValidation{ Format: format, }, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 14K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go
} if ruleType == "int-or-string" { return "", "", true } return ruleType, "", false } func genArrayWithRule(arrayType, rule string) func(maxItems *int64) *schema.Structural { passedType, passedFormat, xIntString := parseRuleType(arrayType) return func(maxItems *int64) *schema.Structural { return &schema.Structural{ Generic: schema.Generic{ Type: "array", },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 51.5K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
d.Type = p.typeOrNil() } else { // d.Name "[" pname "]" ... // d.Name "[" x ... d.Type = p.arrayType(pos, x) } case _Rbrack: // d.Name "[" "]" ... p.next() d.Type = p.sliceType(pos) default: // d.Name "[" ... d.Type = p.arrayType(pos, nil) } } else { d.Alias = p.gotAssign() d.Type = p.typeOrNil() } if d.Type == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0)