- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 30 for dumpfields (0.19 sec)
-
src/cmd/compile/internal/ssa/loopreschedchecks.go
if last.Type.IsTuple() { last = b.NewValue1(last.Pos, OpSelect1, types.TypeMem, last) } else if last.Type.IsResults() { last = b.NewValue1I(last.Pos, OpSelectN, types.TypeMem, int64(last.Type.NumFields()-1), last) } lastMems[b.ID] = last } return lastMems } // mark values type markKind uint8 const ( notFound markKind = iota // block has not been discovered yet
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 21:17:10 UTC 2023 - 16K bytes - Viewed (0) -
src/cmd/compile/internal/walk/complit.go
fixedlit(inInitFunction, initKindDynamic, n, var_, init) break } var components int64 if n.Op() == ir.OARRAYLIT { components = t.NumElem() } else { components = int64(t.NumFields()) } // initialization of an array or struct with unspecified components (missing fields or arrays) if isSimpleName(var_) || int64(len(n.List)) < components {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:03:54 UTC 2023 - 19.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/value.go
// not supported on SSA variables. // TODO: allow if all indexes are constant. if t.NumElem() <= 1 { return CanSSA(t.Elem()) } return false case types.TSTRUCT: if t.NumFields() > MaxStruct { return false } for _, t1 := range t.Fields() { if !CanSSA(t1.Type) { return false } } return true default: return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 16:40:22 UTC 2024 - 16.7K bytes - Viewed (0) -
src/cmd/doc/pkg.go
s := buf.String() if strings.Contains(s, "\n") { return dotDotDot } return s } } func (pkg *Package) formatTypeParams(list *ast.FieldList, depth int) string { if list.NumFields() == 0 { return "" } var tparams []string for _, field := range list.List { tparams = append(tparams, pkg.oneLineField(field, depth)) } return "[" + joinStrings(tparams) + "]" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 08 20:15:52 UTC 2024 - 32K bytes - Viewed (0) -
src/cmd/go/internal/load/test.go
var why string if !isTestFunc(fn, arg) { why = fmt.Sprintf("must be: func %s(%s *testing.%s)", fn.Name.String(), strings.ToLower(arg), arg) } if fn.Type.TypeParams.NumFields() > 0 { why = "test functions cannot have type parameters" } if why != "" { pos := testFileSet.Position(fn.Pos()) return fmt.Errorf("%s: wrong signature for %s, %s", pos, fn.Name.String(), why) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 14:01:23 UTC 2024 - 28.2K bytes - Viewed (0) -
src/go/doc/reader.go
// case and then show those methods in an appropriate section. return } // Associate factory functions with the first visible result type, as long as // others are predeclared types. if fun.Type.Results.NumFields() >= 1 { 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 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 27.5K bytes - Viewed (0) -
src/go/types/issues_test.go
if spec, _ := n.(*ast.TypeSpec); spec != nil { if tv, ok := info.Types[spec.Type]; ok && spec.Name.Name == "T" { want := strings.Count(src, ";") + 1 if got := tv.Type.(*Struct).NumFields(); got != want { t.Errorf("%s: got %d fields; want %d", src, got, want) } } } return true }) } } func TestIssue28005(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/issues_test.go
if decl, _ := n.(*syntax.TypeDecl); decl != nil { if tv, ok := info.Types[decl.Type]; ok && decl.Name.Value == "T" { want := strings.Count(src, ";") + 1 if got := tv.Type.(*Struct).NumFields(); got != want { t.Errorf("%s: got %d fields; want %d", src, got, want) } } } return true }) } } func TestIssue28005(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
api/go1.5.txt
pkg go/types, method (*StdSizes) Offsetsof([]*Var) []int64 pkg go/types, method (*StdSizes) Sizeof(Type) int64 pkg go/types, method (*Struct) Field(int) *Var pkg go/types, method (*Struct) NumFields() int pkg go/types, method (*Struct) String() string pkg go/types, method (*Struct) Tag(int) string pkg go/types, method (*Struct) Underlying() Type pkg go/types, method (*Tuple) At(int) *Var
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 30 21:14:09 UTC 2015 - 46.6K bytes - Viewed (0) -
src/cmd/compile/internal/liveness/plive.go
// Array of 1 element, check if element is fat if t.NumElem() == 1 { return isfat(t.Elem()) } return true case types.TSTRUCT: // Struct with 1 field, check if field is fat if t.NumFields() == 1 { return isfat(t.Field(0).Type) } return true } } return false } // WriteFuncMap writes the pointer bitmaps for bodyless function fn's
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 15:22:22 UTC 2024 - 45.2K bytes - Viewed (0)