type go/types.Slice
49 uses
go/types (current package)
assignments.go#L283: s = check.sprintf("...%s", t.(*Slice).elem)
builtins.go#L86: if s, _ := coreType(S).(*Slice); s != nil {
builtins.go#L187: case *Slice, *Chan:
builtins.go#L205: case *Array, *Slice, *Chan:
builtins.go#L353: dst, _ := coreType(x.typ).(*Slice)
builtins.go#L364: src, _ := src0.(*Slice)
builtins.go#L499: case *Slice:
call.go#L335: typ := last.typ.(*Slice).elem
conversions.go#L189: if s, _ := Vu.(*Slice); s != nil {
conversions.go#L285: if s, _ := under(typ).(*Slice); s != nil {
expr.go#L719: case *Pointer, *Signature, *Slice, *Map, *Chan:
expr.go#L857: case *Slice, *Signature, *Map:
expr.go#L873: case *Slice:
expr.go#L1455: case *Slice:
index.go#L83: case *Slice:
index.go#L131: case *Slice:
index.go#L254: x.typ = &Slice{elem: u.elem}
index.go#L260: x.typ = &Slice{elem: u.elem}
index.go#L263: case *Slice:
infer.go#L388: case *Slice:
infer.go#L727: case *Slice:
mono.go#L237: case *Slice:
predicates.go#L157: case *Slice, *Pointer, *Signature, *Map, *Chan:
predicates.go#L201: case *Slice:
predicates.go#L203: if y, ok := y.(*Slice); ok {
signature.go#L52: if _, ok := params.At(n - 1).typ.(*Slice); !ok {
signature.go#L327: last.typ = &Slice{elem: last.typ}
sizes.go#L67: case *Slice, *Interface:
sizes.go#L147: case *Slice:
slice.go#L8: type Slice struct {
slice.go#L13: func NewSlice(elem Type) *Slice { return &Slice{elem: elem} }
slice.go#L16: func (s *Slice) Elem() Type { return s.elem }
slice.go#L18: func (t *Slice) Underlying() Type { return t }
slice.go#L19: func (t *Slice) String() string { return TypeString(t, nil) }
stmt.go#L948: case *Slice:
subst.go#L97: case *Slice:
subst.go#L100: return &Slice{elem: elem}
typestring.go#L148: case *Slice:
typestring.go#L418: if s, ok := typ.(*Slice); ok {
typexpr.go#L290: typ := new(Slice)
unify.go#L413: case *Slice:
unify.go#L415: if y, ok := y.(*Slice); ok {
golang.org/x/exp/apidiff
correspondence.go#L40: case *types.Slice:
correspondence.go#L41: if new, ok := new.(*types.Slice); ok {
golang.org/x/tools/internal/gcimporter
bexport.go#L347: case *types.Slice:
bexport.go#L545: t = &dddSlice{t.(*types.Slice).Elem()}
bimport.go#L492: t := new(types.Slice)
iexport.go#L736: case *types.Slice: