File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class BeanProperties(thisPhase: DenotTransformer):
39
39
}
40
40
meth.addAnnotations(annots)
41
41
val body : Tree = ref(valDef.symbol)
42
- DefDef (meth, body)
42
+ DefDef (meth, body).withSpan(meth.span)
43
43
44
44
def maybeGenerateSetter (valDef : ValDef , annot : Annotation )(using Context ): Option [Tree ] =
45
45
Option .when(valDef.denot.asSymDenotation.flags.is(Mutable )) {
@@ -55,7 +55,7 @@ class BeanProperties(thisPhase: DenotTransformer):
55
55
a.hasOneOfMetaAnnotation(defn.BeanSetterMetaAnnot ) | ! a.hasOneOfMetaAnnotation(defn.BeanGetterMetaAnnot )
56
56
}
57
57
meth.addAnnotations(annots)
58
- DefDef (meth, (params : List [List [Tree ]]) => Assign (ref(valDef.symbol), params.head.head))
58
+ DefDef (meth, (params : List [List [Tree ]]) => Assign (ref(valDef.symbol), params.head.head)).withSpan(meth.span)
59
59
}
60
60
61
61
def prefixedName (prefix : String , valName : Name ) =
Original file line number Diff line number Diff line change 1
- package dotty .tools .dotc
1
+ package dotty .tools
2
+ package dotc
2
3
package transform
3
4
4
5
import core ._
@@ -147,6 +148,7 @@ class Pickler extends Phase {
147
148
if unequal then
148
149
output(" before-pickling.txt" , previous)
149
150
output(" after-pickling.txt" , unpickled)
151
+ // sys.process.Process("diff -u before-pickling.txt after-pickling.txt").!
150
152
report.error(em """ pickling difference for $cls in ${cls.source}, for details:
151
153
|
152
154
| diff before-pickling.txt after-pickling.txt """ )
Original file line number Diff line number Diff line change @@ -182,6 +182,7 @@ object Spans {
182
182
assert(isSpan)
183
183
if (this == NoCoord ) NoSpan else Span (- 1 - encoding)
184
184
}
185
+ override def toString = if isSpan then s " $toSpan" else s " Coord(idx= $toIndex) "
185
186
}
186
187
187
188
/** An index coordinate */
You can’t perform that action at this time.
0 commit comments