dotty-feature-requests icon indicating copy to clipboard operation
dotty-feature-requests copied to clipboard

Should all Symbols have trees?

Open odersky opened this issue 7 years ago • 1 comments

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.

odersky avatar Jul 13 '17 12:07 odersky

The IDE associates trees with toplevel classes and stores them in a myTree field of ClassDenotation.

It's actually in ClassSymbol, not ClassDenotation

smarter avatar Jul 13 '17 15:07 smarter