Moved to Construct 2 general.
Construct 2 does not generate any usable source code. It exports the entire Construct 2 runtime engine, plus a big block of JSON data representing the game. You cannot do anything useful with this after exporting. However, if you're interested in using code with Construct 2, try looking in to the Javascript SDK.