- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for structuralTypes (0.15 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stringintconv/string.go
pass.Report(diag) }) return nil, nil } func structuralTypes(t types.Type) ([]types.Type, error) { var structuralTypes []types.Type if tp, ok := aliases.Unalias(t).(*types.TypeParam); ok { terms, err := typeparams.StructuralTerms(tp) if err != nil { return nil, err } for _, term := range terms { structuralTypes = append(structuralTypes, term.Type()) } } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 5.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/shift/shift.go
if t == nil { return } var structuralTypes []types.Type switch t := aliases.Unalias(t).(type) { case *types.TypeParam: terms, err := typeparams.StructuralTerms(t) if err != nil { return // invalid type } for _, term := range terms { structuralTypes = append(structuralTypes, term.Type()) } default: structuralTypes = append(structuralTypes, t) } sizes := make(map[int64]struct{})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 3.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/composite/composite.go
return } var structuralTypes []types.Type switch typ := aliases.Unalias(typ).(type) { case *types.TypeParam: terms, err := typeparams.StructuralTerms(typ) if err != nil { return // invalid type } for _, term := range terms { structuralTypes = append(structuralTypes, term.Type()) } default: structuralTypes = append(structuralTypes, typ) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 4.4K bytes - Viewed (0)