Commit 026e7ce
committed
Always pickle the position of DefTrees
A symbol is created before the corresponding tree is unpickled,
so we cannot rely on initialPos to set the symbol position.
Instead, we always pickle the position of definitions.
In practice, this means that we now always pickle the position of all
`TypeDef` and `Bind` (the other `DefTree`s are all `WithLazyField` and
thus already had their positions pickled).1 parent 5fdd40b commit 026e7ce
File tree
1 file changed
+13
-3
lines changed- compiler/src/dotty/tools/dotc/core/tasty
1 file changed
+13
-3
lines changedLines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
49 | 59 | | |
50 | 60 | | |
51 | 61 | | |
| |||
0 commit comments