Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for structuralTypes (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
Back to top