How to find duplicate decorators in JS/TS functions?
Answered
I'm trying to implement inspection that finds duplicates in JavaScript decorators on test functions, e.g. @id(123)
. Which API is recommended to use to find duplicates in JS/TS code? I tried using stub indexes but couldn't find an index which contains decorators. Is there an equivalent to JavaAnnotationIndex in JS/TS implementations?
Please sign in to leave a comment.
Finally found a way to do this. I implemented my own
IntStubIndexExtension
and filled it with values using the JavaScriptframeworkIndexingHandler
extension point.This seems to be the best current solution possible.