Adam Kemp wrote: > > I just noticed that I was passing a location into the warning > function. If I change that to stmts.loc instead of statement.loc then > it works! I tried just removing it and setting this._loc, but that did > not work. It seemed to have no effect no matter what I did. Maybe that > code is broken or I'm still doing something wrong with it. Yeah, for some reason setting this._loc isn't working in your testcase. Might be something with to do with javascript's weird rules for what this refers to. I use this pattern in convert_tree.js and it works there.
Taras _______________________________________________ Dev-static-analysis mailing list [email protected] https://lists.mozilla.org/listinfo/dev-static-analysis
