To the PHP parser, it is all one and the same. There
isn’t WordPress core code and theme code. There is merely
the resulting product, which parses as one code entity.
Oh please. This is like saying anything compiled in GCC is automatically GPLed.