c

scala.reflect.internal.util

UndefinedPosition

sealed abstract class UndefinedPosition extends Position

Linear Supertypes
Position, DeprecatedPosition, InternalPositionImpl, api.Position, Attachments, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UndefinedPosition
  2. Position
  3. DeprecatedPosition
  4. InternalPositionImpl
  5. Position
  6. Attachments
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Pos = Position

    The position type of this attachment

    The position type of this attachment

    Definition Classes
    PositionPositionAttachments

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def ^(point: Int): Position
    Definition Classes
    InternalPositionImpl
  5. def ^|(that: Position): Position
    Definition Classes
    InternalPositionImpl
  6. def all: Predef.Set[Any]

    The underlying payload with the guarantee that no two elements have the same type.

    The underlying payload with the guarantee that no two elements have the same type.

    Definition Classes
    Attachments
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  9. def column: Int
    Definition Classes
    InternalPositionImpl
  10. def contains[T](implicit arg0: ClassTag[T]): Boolean

    Check underlying payload contains an instance of type T.

    Check underlying payload contains an instance of type T.

    Definition Classes
    Attachments
  11. def end: Nothing

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

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

    Definition Classes
    UndefinedPositionPosition → InternalPositionImpl → Position
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def fail(what: String): Nothing
    Attributes
    protected
    Definition Classes
    Position
  15. def finalPosition: Pos

    Map this position to its position in the original source file (which may be this position unchanged.)

    Map this position to its position in the original source file (which may be this position unchanged.)

    Definition Classes
    InternalPositionImpl
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def focus: Position
    Definition Classes
    InternalPositionImpl
  18. def focusEnd: Position
    Definition Classes
    InternalPositionImpl
  19. def focusStart: Position

    Convert a range position to a simple offset.

    Convert a range position to a simple offset.

    Definition Classes
    InternalPositionImpl
  20. def get[T](implicit arg0: ClassTag[T]): Option[T]

    An underlying payload of the given class type T.

    An underlying payload of the given class type T.

    Definition Classes
    Attachments
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def includes(pos: Position): Boolean
    Definition Classes
    InternalPositionImpl
  24. final def isDefined: Boolean

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

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

    Definition Classes
    UndefinedPositionPosition → InternalPositionImpl → Position
  25. def isEmpty: Boolean
    Definition Classes
    Attachments
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. def isOffset: Boolean
    Definition Classes
    InternalPositionImpl
  28. def isOpaqueRange: Boolean
    Definition Classes
    InternalPositionImpl
  29. def isRange: Boolean

    Is this position a range position?

    Is this position a range position?

    Definition Classes
    UndefinedPositionPosition → InternalPositionImpl → Position
  30. def isTransparent: Boolean
    Definition Classes
    InternalPositionImpl
  31. def line: Int
    Definition Classes
    InternalPositionImpl
  32. def lineCaret: String
    Definition Classes
    InternalPositionImpl
  33. def lineContent: String
    Definition Classes
    InternalPositionImpl
  34. def makeTransparent: Position
    Definition Classes
    InternalPositionImpl
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. def overlaps(pos: Position): Boolean
    Definition Classes
    InternalPositionImpl
  39. def point: Nothing

    The point (where the ^ is) of the position, which is easiest to access using the line and column values. The line content is also available.

    The point (where the ^ is) of the position, which is easiest to access using the line and column values. The line content is also available.

    Definition Classes
    UndefinedPositionPosition → InternalPositionImpl → Position
  40. def pointOrElse(alt: Int): Int
    Definition Classes
    InternalPositionImpl
  41. def pos: Position

    The underlying position

    The underlying position

    Definition Classes
    PositionAttachments
  42. def precedes(pos: Position): Boolean
    Definition Classes
    InternalPositionImpl
  43. def properlyIncludes(pos: Position): Boolean
    Definition Classes
    InternalPositionImpl
  44. def properlyPrecedes(pos: Position): Boolean
    Definition Classes
    InternalPositionImpl
  45. def remove[T](implicit arg0: ClassTag[T]): Attachments { type Pos = UndefinedPosition.this.Pos }

    Creates a copy of this attachment with the payload of the given class type T removed.

    Creates a copy of this attachment with the payload of the given class type T removed.

    Definition Classes
    Attachments
  46. def samePointAs(that: Position): Boolean
    Definition Classes
    UndefinedPosition → InternalPositionImpl
  47. def sameRange(pos: Position): Boolean
    Definition Classes
    InternalPositionImpl
  48. def show: String
    Definition Classes
    InternalPositionImpl
  49. def showDebug: String
    Definition Classes
    InternalPositionImpl
  50. def showError(msg: String): String
    Definition Classes
    InternalPositionImpl
  51. def source: NoSourceFile.type

    Java file corresponding to the source file of this position.

    Java file corresponding to the source file of this position.

    The return type is scala.reflect.io.AbstractFile, which belongs to an experimental part of Scala reflection. It should not be used unless you know what you are doing. In subsequent releases, this API will be refined and exposed as a part of scala.reflect.api.

    Definition Classes
    UndefinedPositionPosition → InternalPositionImpl → Position
  52. def start: Nothing

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

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

    Definition Classes
    UndefinedPositionPosition → InternalPositionImpl → Position
  53. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  54. def toString(): String
    Definition Classes
    AnyRef → Any
  55. def union(pos: Position): Position
    Definition Classes
    InternalPositionImpl
  56. def update[T](attachment: T)(implicit arg0: ClassTag[T]): Attachments { type Pos = UndefinedPosition.this.Pos }

    Creates a copy of this attachment with the payload slot of T added/updated with the provided value.

    Creates a copy of this attachment with the payload slot of T added/updated with the provided value. Replaces an existing payload of the same type, if exists.

    Definition Classes
    Attachments
  57. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  60. def withEnd(end: Int): Position
    Definition Classes
    InternalPositionImpl
  61. def withPoint(point: Int): Position
    Definition Classes
    InternalPositionImpl
  62. def withPos(newPos: Position): Attachments { type Pos = UndefinedPosition.this.Pos }

    Creates a copy of this attachment with the position replaced by newPos

    Creates a copy of this attachment with the position replaced by newPos

    Definition Classes
    PositionAttachments
  63. def withShift(shift: Int): Position
    Definition Classes
    InternalPositionImpl
  64. def withSource(source: SourceFile): Position
    Definition Classes
    InternalPositionImpl
  65. def withStart(start: Int): Position

    Copy a range position with a changed value.

    Copy a range position with a changed value.

    Definition Classes
    InternalPositionImpl
  66. def |(that: Position): Position
    Definition Classes
    InternalPositionImpl
  67. def |(that: Position, poses: Position*): Position

    If you have it in for punctuation you might not like these methods.

    If you have it in for punctuation you might not like these methods. However I think they're aptly named.

    | means union means "the point" (look, it's a caret) | means union, taking the point of the rhs ^| means union, taking the point of the lhs

    Definition Classes
    InternalPositionImpl
  68. def |^(that: Position): Position
    Definition Classes
    InternalPositionImpl

Deprecated Value Members

  1. def dbgString: String
    Definition Classes
    DeprecatedPosition
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use showDebug

  2. def endOrPoint: Int
    Definition Classes
    DeprecatedPosition
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use end instead

  3. def inUltimateSource(source: SourceFile): Position
    Definition Classes
    DeprecatedPosition
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use finalPosition

  4. def lineCarat: String
    Definition Classes
    InternalPositionImpl
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use lineCaret

  5. def lineWithCarat(maxWidth: Int): (String, String)
    Definition Classes
    DeprecatedPosition
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use lineCaret

  6. def offset: Option[Int]
    Definition Classes
    DeprecatedPosition
    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) use point

  7. def safeLine: Int
    Definition Classes
    DeprecatedPosition
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use line

  8. def startOrPoint: Int
    Definition Classes
    DeprecatedPosition
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use start instead

  9. def toSingleLine: Position
    Definition Classes
    DeprecatedPosition
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use focus

  10. def withSource(source: SourceFile, shift: Int): Position
    Definition Classes
    DeprecatedPosition
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use withSource(source) and withShift

Inherited from Position

Inherited from DeprecatedPosition

Inherited from InternalPositionImpl

Inherited from api.Position

Inherited from Attachments

Inherited from AnyRef

Inherited from Any

Commonly used methods

Ungrouped