Skip to content

Commit f0ddca7

Browse files
committed
Fixed deprecations
1 parent 35fda76 commit f0ddca7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/scala/scoverage/plugin.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ class ScoverageComponent(val global: Global, options: ScoverageOptions)
7070

7171
var location: Location = null
7272

73-
def safeStart(tree: Tree): Int = if (tree.pos.isDefined) tree.pos.startOrPoint else -1
74-
def safeEnd(tree: Tree): Int = if (tree.pos.isDefined) tree.pos.endOrPoint else -1
75-
def safeLine(tree: Tree): Int = if (tree.pos.isDefined) tree.pos.safeLine else -1
73+
def safeStart(tree: Tree): Int = if (tree.pos.isDefined) tree.pos.start else -1
74+
def safeEnd(tree: Tree): Int = if (tree.pos.isDefined) tree.pos.end else -1
75+
def safeLine(tree: Tree): Int = if (tree.pos.isDefined) tree.pos.line else -1
7676
def safeSource(tree: Tree): Option[SourceFile] = if (tree.pos.isDefined) Some(tree.pos.source) else None
7777

7878
def invokeCall(id: Int): Tree = {

0 commit comments

Comments
 (0)