@@ -9,40 +9,40 @@ import core.Mode
99
1010object trace {
1111
12- @ ` inline`
12+ @ inline
1313 def onDebug [TD ](question : => String )(op : => TD )(implicit ctx : Context ): TD =
1414 conditionally(ctx.settings.YdebugTrace .value, question, false )(op)
1515
16- @ ` inline`
16+ @ inline
1717 def conditionally [TC ](cond : Boolean , question : => String , show : Boolean )(op : => TC )(implicit ctx : Context ): TC = {
1818 def op1 = op
1919 if (Config .tracingEnabled && cond) apply[TC ](question, Printers .default, show)(op1)
2020 else op1
2121 }
2222
23- @ ` inline`
23+ @ inline
2424 def apply [T ](question : => String , printer : Printers .Printer , showOp : Any => String )(op : => T )(implicit ctx : Context ): T = {
2525 def op1 = op
2626 if (! Config .tracingEnabled || printer.eq(config.Printers .noPrinter)) op1
2727 else doTrace[T ](question, printer, showOp)(op1)
2828 }
2929
30- @ ` inline`
30+ @ inline
3131 def apply [T ](question : => String , printer : Printers .Printer , show : Boolean )(op : => T )(implicit ctx : Context ): T = {
3232 def op1 = op
3333 if (! Config .tracingEnabled || printer.eq(config.Printers .noPrinter)) op1
3434 else doTrace[T ](question, printer, if (show) showShowable(_) else alwaysToString)(op1)
3535 }
3636
37- @ ` inline`
37+ @ inline
3838 def apply [T ](question : => String , printer : Printers .Printer )(op : => T )(implicit ctx : Context ): T =
3939 apply[T ](question, printer, false )(op)
4040
41- @ ` inline`
41+ @ inline
4242 def apply [T ](question : => String , show : Boolean )(op : => T )(implicit ctx : Context ): T =
4343 apply[T ](question, Printers .default, show)(op)
4444
45- @ ` inline`
45+ @ inline
4646 def apply [T ](question : => String )(op : => T )(implicit ctx : Context ): T =
4747 apply[T ](question, Printers .default, false )(op)
4848
@@ -59,7 +59,7 @@ object trace {
5959 (op : => T )(implicit ctx : Context ): T = {
6060 // Avoid evaluating question multiple time, since each evaluation
6161 // may cause some extra logging output.
62- @ volatile lazy val q : String = question
62+ lazy val q : String = question
6363 apply[T ](s " ==> $q? " , (res : Any ) => s " <== $q = ${showOp(res)}" )(op)
6464 }
6565
0 commit comments