Also, because the magma is hot enough, it can partially melt the surrounding rock and assimilate it into the magma.
(the magma; is; hot enough) (it; can melt; the surrounding rock) (it; assimilate; it; into the magma)
the magma it it
is can melt assimilate
hot enough
the surrounding rock
it into the magma