- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 94 for StructType (0.17 sec)
-
src/cmd/vendor/golang.org/x/tools/go/ast/inspector/typeof.go
case *ast.SelectorExpr: return 1 << nSelectorExpr case *ast.SendStmt: return 1 << nSendStmt case *ast.SliceExpr: return 1 << nSliceExpr case *ast.StarExpr: return 1 << nStarExpr case *ast.StructType: return 1 << nStructType case *ast.SwitchStmt: return 1 << nSwitchStmt case *ast.TypeAssertExpr: return 1 << nTypeAssertExpr case *ast.TypeSpec: return 1 << nTypeSpec
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 4.8K bytes - Viewed (0) -
staging/src/k8s.io/api/admissionregistration/v1alpha1/generated.proto
// on whether it meets the match criteria. // The exclude rules take precedence over include rules (if a resource matches both, it is excluded) // +structType=atomic message MatchResources { // NamespaceSelector decides whether to run the admission control policy on an object based // on whether the namespace for that object matches the selector. If the
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 28 15:34:11 UTC 2024 - 29.9K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/mkbuiltin.go
case *ast.MapType: return fmt.Sprintf("types.NewMap(%s, %s)", i.subtype(t.Key), i.subtype(t.Value)) case *ast.StarExpr: return fmt.Sprintf("types.NewPtr(%s)", i.subtype(t.X)) case *ast.StructType: return fmt.Sprintf("types.NewStruct(%s)", i.fields(t.Fields, true)) default: log.Fatalf("unhandled type: %#v", t) panic("unreachable") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:56:49 UTC 2023 - 6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go
case *ast.SliceExpr: children = append(children, tok(n.Lbrack, len("[")), tok(n.Rbrack, len("]"))) case *ast.StarExpr: children = append(children, tok(n.Star, len("*"))) case *ast.StructType: children = append(children, tok(n.Struct, len("struct"))) case *ast.SwitchStmt: children = append(children, tok(n.Switch, len("switch"))) case *ast.TypeAssertExpr: children = append(children,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 15.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go
} obj = tuple.At(index) t = nil case opField: structType, ok := t.(*types.Struct) if !ok { return nil, fmt.Errorf("cannot apply %q to %s (got %T, want struct)", code, t, t) } if n := structType.NumFields(); index >= n { return nil, fmt.Errorf("field index %d out of range [0-%d)", index, n) } obj = structType.Field(index) t = nil case opMethod: switch t := t.(type) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 23.1K bytes - Viewed (0) -
src/go/ast/walk.go
Walk(v, n.Y) case *KeyValueExpr: Walk(v, n.Key) Walk(v, n.Value) // Types case *ArrayType: if n.Len != nil { Walk(v, n.Len) } Walk(v, n.Elt) case *StructType: Walk(v, n.Fields) case *FuncType: if n.TypeParams != nil { Walk(v, n.TypeParams) } if n.Params != nil { Walk(v, n.Params) } if n.Results != nil { Walk(v, n.Results)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:34:10 UTC 2024 - 6.4K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/walk.go
// types case *ArrayType: if n.Len != nil { w.node(n.Len) } w.node(n.Elem) case *SliceType: w.node(n.Elem) case *DotsType: w.node(n.Elem) case *StructType: w.fieldList(n.FieldList) for _, t := range n.TagList { if t != nil { w.node(t) } } case *Field: if n.Name != nil { w.node(n.Name) } w.node(n.Type)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:55:04 UTC 2023 - 5.7K bytes - Viewed (0) -
src/go/parser/parser_test.go
src = "struct{x *int}" x, err = ParseExpr(src) if err != nil { t.Errorf("ParseExpr(%q): %v", src, err) } // sanity check if _, ok := x.(*ast.StructType); !ok { t.Errorf("ParseExpr(%q): got %T, want *ast.StructType", src, x) } // an invalid expression src = "a + *" x, err = ParseExpr(src) if err == nil { t.Errorf("ParseExpr(%q): got no error", src) } if x == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 31 20:26:14 UTC 2024 - 24.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typexpr.go
// (array composite literals and parameter lists) check.error(e, InvalidDotDotDot, "invalid use of '...'") check.use(e.Elem) case *syntax.StructType: typ := new(Struct) setDefType(def, typ) check.structType(typ, e) return typ case *syntax.Operation: if e.Op == syntax.Mul && e.Y == nil { typ := new(Pointer)
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/runtime/alg.go
case abi.Array: a := (*arraytype)(unsafe.Pointer(t)) for i := uintptr(0); i < a.Len; i++ { h = typehash(a.Elem, add(p, i*a.Elem.Size_), h) } return h case abi.Struct: s := (*structtype)(unsafe.Pointer(t)) for _, f := range s.Fields { if f.Name.IsBlank() { continue } h = typehash(f.Typ, add(p, f.Offset), h) } return h default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 13.6K bytes - Viewed (0)