How to find duplicate decorators in JS/TS functions?
已回答
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?
请先登录再写评论。
Finally found a way to do this. I implemented my own
IntStubIndexExtensionand filled it with values using the JavaScriptframeworkIndexingHandlerextension point.This seems to be the best current solution possible.