Under federal law, the "gun" is the serial-numbered part -- in the case of the AR-15, the lower receiver. Everything else is just an unrestricted part.
When NY, California, NJ, etc., restricted the AR-15, did they apply the restrictions to complete guns, to lower receivers, or to any and all...