-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: inheritance references for classes and interfaces #88
Comments
What do you mean by inherits from? class A {}
class B extends A {} so the |
Yes, exactly. I would need the reference from B to A. The background is that I'm building a programm, which parses a set of Typescript files and generates a class diagramm out of it (for documentation purposes). |
Ok, so I thought about this and found the following problem: during the parse step, I can only parse the name of the type that a class extends from. I don't have the exact knowledge about the type. This exact reference can only be done when the whole declaration index is used. Then I could parse the name that is used with the given import to actually get the type reference. |
Ok – thank you for your efforts!
Von: Christoph Bühler [mailto:[email protected]]
Gesendet: Freitag, 31. August 2018 09:01
An: buehler/node-typescript-parser <[email protected]>
Cc: Kusel, Angelika <[email protected]>; Mention <[email protected]>
Betreff: Re: [buehler/node-typescript-parser] feat: inheritance references for classes and interfaces (#88)
@Angelika12<https://github.com/Angelika12>
Ok, so I thought about this and found the following problem: during the parse step, I can only parse the name of the type that a class extends from. I don't have the exact knowledge about the type. This exact reference can only be done when the whole declaration index is used. Then I could parse the name that is used with the given import to actually get the type reference.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#88 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AoLpirpF7yaf5ygI_tFWgWbSVPYxEP7kks5uWN8RgaJpZM4VwSpB>.
|
I also would love to see this feature added. And unfortunately, it's even a showstopper for me. I can't think how I can work around it with the current features. For me I'd just be happy to have all the tokens which are following the
|
Classes are parsed as ClassDeclarations - anyhow, I don't find the classes, where a specific class inherits from.
The text was updated successfully, but these errors were encountered: