Determining statement self reference