From 7d62df035cd4393c73e7530e1cad1130e79d90c6 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 27 Sep 2013 14:38:38 -0700 Subject: Updating Position call sites. Calling position factories rather than instantiating these particular classes. Not calling deprecated methods. Added a few position combinator methods. --- src/repl/scala/tools/nsc/interpreter/IMain.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/repl') diff --git a/src/repl/scala/tools/nsc/interpreter/IMain.scala b/src/repl/scala/tools/nsc/interpreter/IMain.scala index a60de01673..7e8999a099 100644 --- a/src/repl/scala/tools/nsc/interpreter/IMain.scala +++ b/src/repl/scala/tools/nsc/interpreter/IMain.scala @@ -407,7 +407,7 @@ class IMain(@BeanProperty val factory: ScriptEngineFactory, initialSettings: Set } private def safePos(t: Tree, alt: Int): Int = - try t.pos.startOrPoint + try t.pos.start catch { case _: UnsupportedOperationException => alt } // Given an expression like 10 * 10 * 10 we receive the parent tree positioned -- cgit v1.2.3