Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SoleComponent (0.11 sec)

  1. src/cmd/compile/internal/walk/convert.go

    				return types.TUINT32, types.TFLOAT64
    			}
    		}
    	}
    	return types.Txxx, types.Txxx
    }
    
    func soleComponent(init *ir.Nodes, n ir.Node) ir.Node {
    	if n.Type().SoleComponent() == nil {
    		return n
    	}
    	// Keep in sync with cmd/compile/internal/types/type.go:Type.SoleComponent.
    	for {
    		switch {
    		case n.Type().IsStruct():
    			if n.Type().Field(0).Sym.IsBlank() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  2. 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