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
Add SourceFile#getReferencedSourceFiles() and similar methods #680
Comments
SourceFile#getReferencedSourceFiles()
and similar methods
Any progress on this? |
@HamedFathi I've been super busy over the past few weeks with some personal stuff. I'm going to get back at this very soon (probably today or tomorrow I will finish this one and try to do a 4.0 release very soon to fix some issues with TS 3.6) |
…ReferenceDirectives()`. BREAKING CHANGE: `SourceFile#getReferencedFiles()` is now `getPathReferenceDirectives()`. This was done to prevent confusion with upcoming methods in #680. The name was chosen because it is similar to the methods `getTypeReferenceDirectives()` and `getLibReferenceDirectives()`.
…eferencingOtherSourceFiles()`, and `#getLiteralsReferencingOtherSourceFiles()`.
This is implemented and will be in v4.0. The corresponding methods are:
@HamedFathi that's cool! The coverage feature is neat. |
Ok, this is released now in 4.0. |
From #679.
There currently exists the following methods:
getReferencingSourceFiles()
- Gets any source files that reference this source file.getReferencingNodesInOtherSourceFiles()
getReferencingLiteralsInOtherSourceFiles()
...but the opposite of this doesn't exist (ex.
getReferencedSourceFiles()
). This is just hidden internally and could be easily exposed.While doing this,
#getReferencedFiles
should probably be renamed togetFileReference()
to prevent confusion (even though the compiler node has areferencedFiles
property... not worth keeping the name because it's probably a rarely used method that would be easy to find on the new method name).The text was updated successfully, but these errors were encountered: