scala.tools.nsc.util

Position

trait Position extends Position with Attachment

Source
Position.scala
Linear Supertypes
Position, Attachment, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Position
  2. Position
  3. Attachment
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringfmt
  2. by any2stringadd
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from Position to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (Position, B)

    Implicit information
    This member is added by an implicit conversion from Position to ArrowAssoc[Position] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def column: Int

    Definition Classes
    Position → Position
  11. def dbgString: String

  12. def end: Int

    The end of the position's range, error if not a range position

    The end of the position's range, error if not a range position

    Definition Classes
    Position → Position
  13. def endOrPoint: Int

    The end of the position's range, or point if not a range position

    The end of the position's range, or point if not a range position

    Definition Classes
    Position → Position
  14. def ensuring(cond: (Position) ⇒ Boolean, msg: ⇒ Any): Position

    Implicit information
    This member is added by an implicit conversion from Position to Ensuring[Position] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: (Position) ⇒ Boolean): Position

    Implicit information
    This member is added by an implicit conversion from Position to Ensuring[Position] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean, msg: ⇒ Any): Position

    Implicit information
    This member is added by an implicit conversion from Position to Ensuring[Position] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean): Position

    Implicit information
    This member is added by an implicit conversion from Position to Ensuring[Position] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  20. def fileContent: Array[Char]

    Contents of the source file that contains this position.

    Contents of the source file that contains this position.

    Definition Classes
    Position → Position
  21. def fileInfo: File

    Java file corresponding to the source file of this position.

    Java file corresponding to the source file of this position.

    Definition Classes
    Position → Position
  22. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  23. def focus: Position

    If this is a range position, the offset position of its point.

    If this is a range position, the offset position of its point. Otherwise the position itself

    Definition Classes
    Position → Position
  24. def focusEnd: Position

    If this is a range position, the offset position of its end.

    If this is a range position, the offset position of its end. Otherwise the position itself

    Definition Classes
    Position → Position
  25. def focusStart: Position

    If this is a range position, the offset position of its start.

    If this is a range position, the offset position of its start. Otherwise the position itself

    Definition Classes
    Position → Position
  26. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from Position to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  27. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  28. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  29. def inUltimateSource(source: SourceFile): Position

    Map this position to a position in an original source file.

    Map this position to a position in an original source file. If the SourceFile is a normal SourceFile, simply return this.

  30. def includes(pos: Position): Boolean

    Does this position include the given position pos.

    Does this position include the given position pos. This holds if this is a range position and its range [start..end] is the same or covers the range of the given position, which may or may not be a range position.

    Definition Classes
    Position → Position
  31. def isDefined: Boolean

    Is this position neither a NoPosition nor a FakePosition? If isDefined is true, offset and source are both defined.

    Is this position neither a NoPosition nor a FakePosition? If isDefined is true, offset and source are both defined.

    Definition Classes
    Position → Position
  32. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  33. def isOpaqueRange: Boolean

    Is this position a non-transparent range position?

    Is this position a non-transparent range position?

    Definition Classes
    Position → Position
  34. def isRange: Boolean

    Is this position a range position?

    Is this position a range position?

    Definition Classes
    Position → Position
  35. def isTransparent: Boolean

    Is this position a transparent position?

    Is this position a transparent position?

    Definition Classes
    Position → Position
  36. def line: Int

    Definition Classes
    Position → Position
  37. def lineContent: String

    Definition Classes
    Position → Position
  38. def makeTransparent: Position

    if opaque range, make this position transparent

    if opaque range, make this position transparent

    Definition Classes
    Position → Position
  39. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  40. final def notify(): Unit

    Definition Classes
    AnyRef
  41. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  42. def overlaps(pos: Position): Boolean

    Does this position overlap with that position? This holds if both positions are ranges and there is an interval of non-zero length that is shared by both position ranges.

    Does this position overlap with that position? This holds if both positions are ranges and there is an interval of non-zero length that is shared by both position ranges.

    Definition Classes
    Position → Position
  43. def payload: Position

    Exposes itself as payload of Attachment

    Exposes itself as payload of Attachment

    Definition Classes
    Position → Attachment
  44. def point: Int

    The point (where the ^ is) of the position

    The point (where the ^ is) of the position

    Definition Classes
    Position → Position
  45. def pointOrElse(default: Int): Int

    The point (where the ^ is) of the position, or else default if undefined

    The point (where the ^ is) of the position, or else default if undefined

    Definition Classes
    Position → Position
  46. def pos: Position

    Exposes itself as payload of Attachment

    Exposes itself as payload of Attachment

    Definition Classes
    Position → Attachment
  47. def precedes(pos: Position): Boolean

    Does this position precede that position? This holds if both positions are defined and the end point of this position is not larger than the start point of the given position.

    Does this position precede that position? This holds if both positions are defined and the end point of this position is not larger than the start point of the given position.

    Definition Classes
    Position → Position
  48. def properlyIncludes(pos: Position): Boolean

    Does this position properly include the given position pos ("properly" meaning their ranges are not the same)?

    Does this position properly include the given position pos ("properly" meaning their ranges are not the same)?

    Definition Classes
    Position → Position
  49. def properlyPrecedes(pos: Position): Boolean

    Does this position properly precede the given position pos ("properly" meaning their ranges do not share a common point).

    Does this position properly precede the given position pos ("properly" meaning their ranges do not share a common point).

    Definition Classes
    Position → Position
  50. def safeLine: Int

  51. def sameRange(pos: Position): Boolean

    Does this position cover the same range as that position? Holds only if both position are ranges

    Does this position cover the same range as that position? Holds only if both position are ranges

    Definition Classes
    Position → Position
  52. val self: Any

    Implicit information
    This member is added by an implicit conversion from Position to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
  53. val self: Any

    Implicit information
    This member is added by an implicit conversion from Position to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  54. def show: String

    Definition Classes
    Position → Position
  55. def source: SourceFile

    An optional value containing the source file referred to by this position, or None if not defined.

  56. def start: Int

    The start of the position's range, error if not a range position

    The start of the position's range, error if not a range position

    Definition Classes
    Position → Position
  57. def startOrPoint: Int

    The start of the position's range, or point if not a range position

    The start of the position's range, or point if not a range position

    Definition Classes
    Position → Position
  58. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  59. def toSingleLine: Position

    Convert this to a position around point that spans a single source line

    Convert this to a position around point that spans a single source line

    Definition Classes
    Position → Position
  60. def toString(): String

    Definition Classes
    AnyRef → Any
  61. def union(pos: Position): Position

    If this is a range, the union with the other range, with the point of this position.

    If this is a range, the union with the other range, with the point of this position. Otherwise, this position

    Definition Classes
    Position → Position
  62. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  63. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  64. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  65. def withEnd(off: Int): Position

    The same position with a different end value (if a range)

    The same position with a different end value (if a range)

    Definition Classes
    Position → Position
  66. def withPayload(newPos: Any): Attachment

    A bit weird method that is necessary to safely update positions without destroying custom attachments

    A bit weird method that is necessary to safely update positions without destroying custom attachments

    Definition Classes
    Position → Attachment
  67. def withPoint(off: Int): Position

    The same position with a different point value (if a range or offset)

    The same position with a different point value (if a range or offset)

    Definition Classes
    Position → Position
  68. def withPos(newPos: Position): Attachment

    A bit weird method that is necessary to safely update positions without destroying custom attachments

    A bit weird method that is necessary to safely update positions without destroying custom attachments

    Definition Classes
    Position → Attachment
  69. def withSource(source: SourceFile, shift: Int): Position

    The same position with a different source value, and its values shifted by given offset

  70. def withStart(off: Int): Position

    The same position with a different start value (if a range)

    The same position with a different start value (if a range)

    Definition Classes
    Position → Position
  71. def [B](y: B): (Position, B)

    Implicit information
    This member is added by an implicit conversion from Position to ArrowAssoc[Position] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def offset: Option[Int]

    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) use point instead

  2. def x: Position

    Implicit information
    This member is added by an implicit conversion from Position to ArrowAssoc[Position] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  3. def x: Position

    Implicit information
    This member is added by an implicit conversion from Position to Ensuring[Position] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Position

Inherited from Attachment

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringfmt from Position to StringFormat

Inherited by implicit conversion any2stringadd from Position to StringAdd

Inherited by implicit conversion any2ArrowAssoc from Position to ArrowAssoc[Position]

Inherited by implicit conversion any2Ensuring from Position to Ensuring[Position]