dotty-feature-requests
dotty-feature-requests copied to clipboard
Should all Symbols have trees?
We now have two different ways to access a tree from a SymDenotation.
- The IDE associates trees with toplevel classes and stores them in a
myTree
field of ClassDenotation. - Inline methods store trees in special funny attributes.
It would simplify things if we could simply store the tree representing the definition of a symbol in the symbol itself. (it should probably be the symbol, not the denotation, because we are probably not interested in transformed trees). The only downside I can see is increased memory consumption, but I don't think it will be a big concern.
The IDE associates trees with toplevel classes and stores them in a myTree field of ClassDenotation.
It's actually in ClassSymbol, not ClassDenotation