Using graspjs to instrument functions
retorquere opened this issue · comments
Emiliano Heyns commented
I am looking to add a statement to the top of all functions and methods, such that
function x(a) {
...
}
const y = (b) => {
...
}
class C {
z(c) {
...
}
}
comes out something like
function x(a) {
console.log("x(a)")
...
}
const y = (b) => {
console.log("?(b)")
...
}
class C {
z(c) {
console.log("z(c)")
...
}
}
is this possible using graspjs?