better.js icon indicating copy to clipboard operation
better.js copied to clipboard

globaldetector and who is using it

Open jeromeetienne opened this issue 13 years ago • 3 comments

  • first pass globaldetector gives you the name
  • second pass, qgettersetter to get callers
    • works with function ?
    • as you get the name of the created global, it is possible to monitor it

jeromeetienne avatar Oct 18 '12 08:10 jeromeetienne

the trick is in the double pass.

  • second pass knows the name of the variable

jeromeetienne avatar Oct 18 '12 08:10 jeromeetienne

code is running. Api still unknown

jeromeetienne avatar Oct 19 '12 23:10 jeromeetienne

stages

  1. collect names of globals
    • provide a function to dump .trackUsage() based on the result
  2. track usages of globals
    • same as in propertyAttr tracker and functionAttr tracker
  3. dump tracker for fix

jeromeetienne avatar Oct 20 '12 14:10 jeromeetienne