Commit 6b1f7b8
committed
Drop OBJECTDEF from TastyFormat
It was not supported yet by pickler and unpickler. In fact it would be quite
awkward to support it since in the pickling format a symbol reference is the
address of the definition tree node. So if there is only a single OBJECTDEF
node, we get an ambiguity between object and its module class. This makes
tree unpickling much harder.
So I believe it is better to expose the object encoding into a lazy val
and a class definition. That also explains where OBJECTNAMEs are bound.1 parent b59cd4c commit 6b1f7b8
File tree
2 files changed
+4
-7
lines changed- compiler/src/dotty/tools/dotc/core/tasty
2 files changed
+4
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
| |||
430 | 429 | | |
431 | 430 | | |
432 | 431 | | |
433 | | - | |
434 | 432 | | |
435 | 433 | | |
436 | 434 | | |
| |||
593 | 591 | | |
594 | 592 | | |
595 | 593 | | |
596 | | - | |
597 | 594 | | |
598 | 595 | | |
599 | 596 | | |
| |||
669 | 666 | | |
670 | 667 | | |
671 | 668 | | |
672 | | - | |
| 669 | + | |
673 | 670 | | |
674 | 671 | | |
675 | 672 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
| 88 | + | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
0 commit comments