File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ case class MeasuredStatement(source: String,
8282 location : Location ,
8383 id : Int ,
8484 start : Int ,
85+ end : Int ,
8586 line : Int ,
8687 desc : String ,
8788 branch : Boolean ,
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ class ScalesComponent(val global: Global)
4747 var location : Location = null
4848
4949 def safeStart (tree : Tree ): Int = if (tree.pos.isDefined) tree.pos.startOrPoint else - 1
50+ def safeEnd (tree : Tree ): Int = if (tree.pos.isDefined) tree.pos.endOrPoint else - 1
5051 def safeLine (tree : Tree ): Int = if (tree.pos.isDefined) tree.pos.safeLine else - 1
5152 def safeSource (tree : Tree ): Option [SourceFile ] = if (tree.pos.isDefined) Some (tree.pos.source) else None
5253
@@ -89,6 +90,7 @@ class ScalesComponent(val global: Global)
8990 source.path,
9091 location, id,
9192 safeStart(tree),
93+ safeEnd(tree),
9294 safeLine(tree),
9395 tree.toString(),
9496 branch
@@ -206,6 +208,9 @@ class ScalesComponent(val global: Global)
206208 case s : Select =>
207209 super .transform(tree)
208210
211+ // case s: Super =>
212+ // treeCopy.Super(s, s.qual, s.mix)
213+
209214 // a synthetic object is a generated object, such as case class companion
210215 case m : ModuleDef if m.symbol.isSynthetic => tree
211216
@@ -230,7 +235,6 @@ class ScalesComponent(val global: Global)
230235
231236 case tapply : TypeApply => instrument(tapply)
232237 case assign : Assign => instrument(assign)
233- // case select: Select => instrument(select)
234238
235239 // pattern match clauses will be instrumented per case
236240 case Match (clause : Tree , cases : List [CaseDef ]) =>
You can’t perform that action at this time.
0 commit comments