End
statement is encountered (or manually specified in the immediate pane), or when the code gets modified in a way that requires recompiling, like changing an executing method's signature, or changing the type of a variable that's in-scope for example.