Skip to content

Using graspjs to instrument functions #126

@retorquere

Description

@retorquere

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions