Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added more documentation for _return callback #59

Merged
merged 1 commit into from
Nov 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/ch.usi.inf.nodeprof/js/analysis/trivial/emptyTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,14 @@
/**
* This callback is called before a value is returned from a function using the <tt>return</tt> keyword.
*
* This does NOT mean the function is being exited. Functions can return 0, 1, or more times.
* For example:
* - <tt>void</tt> functions return 0 times
* - functions that use the <tt>return</tt> keyword regularly return 1 time
* - functions that return in both parts of a try/finally block can return 2 times
*
* To see when a function ACTUALLY exits, see the <tt>functionExit</tt> callback.
*
* @param {number} iid - Static unique instruction identifier of this callback
* @param {*} val - Value to be returned
*/
Expand Down