Commit 5c10120
committed
Tweak -Xprint output
Most importantly, move "unchanged since $phase" to be on the same line
as the lead-in. And then I copied over the lead-in from Scala 2,
because I like it. It doesn't look as nice because MegaPhases don't
have their own trim name, but it starts nicely:
[[syntax trees at end of typer]] // a.scala
package <empty> {
class C() extends Object() {
def foo: Int = 1
}
}
[[syntax trees at end of inlinedPositions]] // a.scala: unchanged since typer
[[syntax trees at end of posttyper]] // a.scala
package <empty> {
@scala.annotation.internal.SourceFile("a.scala") class C() extends Object() {
def foo: Int = 1
}
}
[[syntax trees at end of pickler]] // a.scala: unchanged since posttyper
[[syntax trees at end of inlining]] // a.scala: unchanged since posttyper
[[syntax trees at end of postInlining]] // a.scala: unchanged since posttyper
[[syntax trees at end of staging]] // a.scala: unchanged since posttyper
[[syntax trees at end of pickleQuotes]] // a.scala: unchanged since posttyper
[[syntax trees at end of MegaPhase{firstTransform, checkReentrant, elimPackagePrefixes, cookComments, checkStatic, betaReduce, inlineVals, expandSAMs}]] // a.scala: unchanged since posttyper
[[syntax trees at end of MegaPhase{elimRepeated, protectedAccessors, extmethods, uncacheGivenAliases, byNameClosures, hoistSuperArgs, specializeApplyMethods, refchecks, tryCatchPatterns, patternMatcher}]] // a.scala: unchanged since posttyper
[[syntax trees at end of MegaPhase{elimOpaque, explicitOuter, explicitSelf, elimByName, stringInterpolatorOpt}]] // a.scala: unchanged since posttyper
[[syntax trees at end of MegaPhase{pruneErasedDefs, uninitializedDefs, inlinePatterns, vcInlineMethods, seqLiterals, intercepted, getters, specializeFunctions, liftTry, collectNullableFields, elimOuterSelect, resolveSuper, functionXXLForwarders, paramForwarding, genericTuples, letOverApply, arrayConstructors}]] // a.scala: unchanged since posttyper1 parent 58d1b10 commit 5c10120
File tree
2 files changed
+14
-18
lines changed- compiler/src/dotty/tools/dotc
- tests/printing
2 files changed
+14
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
272 | | - | |
273 | | - | |
| 271 | + | |
| 272 | + | |
274 | 273 | | |
275 | 274 | | |
276 | | - | |
277 | | - | |
278 | 275 | | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
| 276 | + | |
| 277 | + | |
288 | 278 | | |
289 | 279 | | |
290 | | - | |
291 | | - | |
292 | | - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
293 | 288 | | |
294 | 289 | | |
295 | 290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
0 commit comments