Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SoleComponent (0.12 sec)

  1. src/cmd/compile/internal/types/type.go

    		}
    		if t.NumFields() != 1 {
    			return nil
    		}
    		return t.Field(0).Type.SoleComponent()
    	case TARRAY:
    		if t.NumElem() != 1 {
    			return nil
    		}
    		return t.Elem().SoleComponent()
    	}
    	return t
    }
    
    // ChanDir returns the direction of a channel type t.
    // The direction will be one of Crecv, Csend, or Cboth.
    func (t *Type) ChanDir() ChanDir {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
Back to top