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?

0
2 comments

Finally found a way to do this. I implemented my own IntStubIndexExtension and filled it with values using the JavaScript frameworkIndexingHandler extension point.

0

This seems to be the best current solution possible.

0

Please sign in to leave a comment.