setHasResult

Marks this statement as producing the script result.