summaryrefslogtreecommitdiff
path: root/src/reflect/scala/reflect/api/Position.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-09-27 14:38:38 -0700
committerPaul Phillips <paulp@improving.org>2013-09-27 14:42:24 -0700
commit7d62df035cd4393c73e7530e1cad1130e79d90c6 (patch)
tree8a643ea65861b7bceb8d22397d991401b8716079 /src/reflect/scala/reflect/api/Position.scala
parent5a8cd09819f58adcb866722f48b00066d23e7a82 (diff)
downloadscala-7d62df035cd4393c73e7530e1cad1130e79d90c6.tar.gz
scala-7d62df035cd4393c73e7530e1cad1130e79d90c6.tar.bz2
scala-7d62df035cd4393c73e7530e1cad1130e79d90c6.zip
Updating Position call sites.
Calling position factories rather than instantiating these particular classes. Not calling deprecated methods. Added a few position combinator methods.
Diffstat (limited to 'src/reflect/scala/reflect/api/Position.scala')
-rw-r--r--src/reflect/scala/reflect/api/Position.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/reflect/scala/reflect/api/Position.scala b/src/reflect/scala/reflect/api/Position.scala
index 4d5f1f6e67..2019e2f1d9 100644
--- a/src/reflect/scala/reflect/api/Position.scala
+++ b/src/reflect/scala/reflect/api/Position.scala
@@ -50,11 +50,11 @@ trait Position extends Attachments {
/** If opaque range, make this position transparent. */
def makeTransparent: Pos
- /** The start of the position's range, error if not a range position. */
+ /** The start of the position's range, or the point if not a range position. */
def start: Int
/** The start of the position's range, or point if not a range position. */
- def startOrPoint: Int
+ @deprecated("Use `start` instead", "2.11.0") def startOrPoint: Int
/** The point (where the ^ is) of the position, which is easiest to access using the [[line]] and [[column]] values.
* The [[lineContent line content]] is also available.
@@ -67,13 +67,13 @@ trait Position extends Attachments {
*/
def pointOrElse(default: Int): Int
- /** The end of the position's range, error if not a range position.
+ /** The end of the position's range, or the point if not a range position.
*/
def end: Int
/** The end of the position's range, or point if not a range position.
*/
- def endOrPoint: Int
+ @deprecated("Use `end` instead", "2.11.0") def endOrPoint: Int
/** The same position with a different start value (if a range).
*/