Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

    		return true
    
    	case TARRAY:
    		// Array of 1 direct iface type can be direct.
    		return t.NumElem() == 1 && IsDirectIface(t.Elem())
    
    	case TSTRUCT:
    		// Struct with 1 field of direct iface type can be direct.
    		return t.NumFields() == 1 && IsDirectIface(t.Field(0).Type)
    	}
    
    	return false
    }
    
    // IsInterfaceMethod reports whether (field) m is
    // an interface method. Such methods have the
    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