runem / web-component-analyzer

CLI that analyzes web components and emits documentation
https://runem.github.io/web-component-analyzer
MIT License
501 stars 61 forks source link

API does not find prop definitions for imported classes [Lit Element] #207

Open brownieboy opened 3 years ago

brownieboy commented 3 years ago

Test with Lit Element, I've found that the API (analyzeText function) does not find prop and event definitions when you extend a class from another class that was imported. If both parent and child classes are defined within the same .ts file, then the API call works.

When using the CLI, both cases work.

I've set up test cases in this repo https://github.com/brownieboy/wca-traverse-test. Check the readme.md file for full details.