You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now findReferences and getDefinitions() is the same as in the compiler API and it's kind of a pain to use if you only want to get the nodes:
constclassDeclaration= ...;// get a class or some other declaration somehowconstreferencedSymbols=classDeclaration.getNameNode().findReferences();constreferencingNodes=referencedSymbols.map(s=>s.getReferences()).reduce(/*...etc..*/).filter(r=>!r.isDefinition()).map(r=>r.getNode()))
Would be nice if there was also a method for getting just the nodes (ex. classDeclaration.getReferencingNodes() and node.getDefinitionNodes()).
The text was updated successfully, but these errors were encountered:
Right now
findReferences
andgetDefinitions()
is the same as in the compiler API and it's kind of a pain to use if you only want to get the nodes:Would be nice if there was also a method for getting just the nodes (ex.
classDeclaration.getReferencingNodes()
andnode.getDefinitionNodes()
).The text was updated successfully, but these errors were encountered: