Packages

o

scala.tools.tasty

TastyFormat

object TastyFormat

Source
TastyFormat.scala
Linear Supertypes
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TastyFormat
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class NameTags extends AnyRef

    Tags used to serialize names, should update TastyFormat$.nameTagToString if a new constant is added

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. final val ABSTRACT: Int(9)
  5. final val ALTERNATIVE: Int(151)
  6. final val ANDtype: Int(165)
  7. final val ANNOTATEDtpt: Int(154)
  8. final val ANNOTATEDtype: Int(153)
  9. final val ANNOTATION: Int(173)
  10. final val APPLIEDtpt: Int(162)
  11. final val APPLIEDtype: Int(161)
  12. final val APPLY: Int(136)
  13. final val APPLYsigpoly: Int(181)
  14. final val ARTIFACT: Int(24)
  15. final val ASSIGN: Int(139)
  16. final val ASTsSection: String("ASTs")
  17. final val BIND: Int(150)
  18. final val BLOCK: Int(140)
  19. final val BOUNDED: Int(102)
  20. final val BYNAMEtpt: Int(94)
  21. final val BYNAMEtype: Int(93)
  22. final val BYTEconst: Int(67)
  23. final val CASE: Int(12)
  24. final val CASEDEF: Int(155)
  25. final val CASEaccessor: Int(27)
  26. final val CHARconst: Int(69)
  27. final val CLASSconst: Int(92)
  28. final val CONTRAVARIANT: Int(29)
  29. final val COVARIANT: Int(28)
  30. final val CommentsSection: String("Comments")
  31. final val DEFDEF: Int(130)
  32. final val DOUBLEconst: Int(73)
  33. final val EMPTYCLAUSE: Int(45)
  34. final val ENUM: Int(21)
  35. final val ERASED: Int(34)
  36. final val EXPORT: Int(177)
  37. final val EXPORTED: Int(39)
  38. final val EXTENSION: Int(36)
  39. final val ExperimentalVersion: Int

    Natural Number.

    Natural Number. The ExperimentalVersion allows for experimentation with changes to TASTy without committing to any guarantees of compatibility.

    A zero value indicates that the TASTy version is from a stable, final release.

    A strictly positive value indicates that the TASTy version is experimental. An experimental TASTy file can only be read by a tool with the same version. However, tooling with an experimental TASTy version is able to read final TASTy documents if the file's MinorVersion is strictly less than the current value.

  40. final val FALSEconst: Int(3)
  41. final val FIELDaccessor: Int(26)
  42. final val FINAL: Int(10)
  43. final val FLOATconst: Int(72)
  44. final val GIVEN: Int(37)
  45. final val HASDEFAULT: Int(31)
  46. final val HOLE: Int(255)
  47. final val IDENT: Int(110)
  48. final val IDENTtpt: Int(111)
  49. final val IF: Int(141)
  50. final val IMPLICIT: Int(13)
  51. final val IMPLICITarg: Int(97)
  52. final val IMPORT: Int(132)
  53. final val IMPORTED: Int(75)
  54. final val INFIX: Int(43)
  55. final val INLINE: Int(17)
  56. final val INLINED: Int(147)
  57. final val INLINEPROXY: Int(16)
  58. final val INTconst: Int(70)
  59. final val INVISIBLE: Int(44)
  60. final val LAMBDA: Int(142)
  61. final val LAMBDAtpt: Int(171)
  62. final val LAZY: Int(14)
  63. final val LOCAL: Int(22)
  64. final val LONGconst: Int(71)
  65. final val MACRO: Int(33)
  66. final val MATCH: Int(143)
  67. final val MATCHCASEtype: Int(192)
  68. final val MATCHtpt: Int(191)
  69. final val MATCHtype: Int(190)
  70. final val METHODtype: Int(180)
  71. final val MUTABLE: Int(25)
  72. final val MajorVersion: Int

    Natural number.

    Natural number. Each increment of the MajorVersion begins a new series of backward compatible TASTy versions.

    A TASTy file in either the preceeding or succeeding series is incompatible with the current value.

  73. final val MinorVersion: Int

    Natural number.

    Natural number. Each increment of the MinorVersion, within a series declared by the MajorVersion, breaks forward compatibility, but remains backwards compatible, with all preceeding MinorVersion.

  74. final val NAMEDARG: Int(119)
  75. final val NEW: Int(95)
  76. final val NULLconst: Int(5)
  77. final val OBJECT: Int(19)
  78. final val OPAQUE: Int(35)
  79. final val OPEN: Int(40)
  80. final val ORtype: Int(167)
  81. final val OVERRIDE: Int(15)
  82. final val PACKAGE: Int(128)
  83. final val PARAM: Int(134)
  84. final val PARAMalias: Int(41)
  85. final val PARAMsetter: Int(38)
  86. final val PARAMtype: Int(172)
  87. final val POLYtype: Int(169)
  88. final val PRIVATE: Int(6)
  89. final val PRIVATEqualified: Int(98)
  90. final val PROTECTED: Int(8)
  91. final val PROTECTEDqualified: Int(99)
  92. final val PositionsSection: String("Positions")
  93. final val QUALTHIS: Int(91)
  94. final val RECthis: Int(66)
  95. final val RECtype: Int(100)
  96. final val REFINEDtpt: Int(160)
  97. final val REFINEDtype: Int(159)
  98. final val RENAMED: Int(76)
  99. final val REPEATED: Int(149)
  100. final val RETURN: Int(144)
  101. final val SEALED: Int(11)
  102. final val SELECT: Int(112)
  103. final val SELECTin: Int(176)
  104. final val SELECTouter: Int(148)
  105. final val SELECTtpt: Int(113)
  106. final val SELFDEF: Int(118)
  107. final val SHAREDterm: Int(60)
  108. final val SHAREDtype: Int(61)
  109. final val SHORTconst: Int(68)
  110. final val SINGLETONtpt: Int(101)
  111. final val SOURCE: Int(4)
  112. final val SPLITCLAUSE: Int(46)
  113. final val STABLE: Int(32)
  114. final val STATIC: Int(18)
  115. final val STRINGconst: Int(74)
  116. final val SUPER: Int(157)
  117. final val SUPERtype: Int(158)
  118. final val SYNTHETIC: Int(23)
  119. final val TEMPLATE: Int(156)
  120. final val TERMREF: Int(115)
  121. final val TERMREFdirect: Int(62)
  122. final val TERMREFin: Int(174)
  123. final val TERMREFpkg: Int(64)
  124. final val TERMREFsymbol: Int(114)
  125. final val THIS: Int(90)
  126. final val THROW: Int(96)
  127. final val TRAIT: Int(20)
  128. final val TRANSPARENT: Int(42)
  129. final val TRUEconst: Int(4)
  130. final val TRY: Int(146)
  131. final val TYPEAPPLY: Int(137)
  132. final val TYPEBOUNDS: Int(163)
  133. final val TYPEBOUNDStpt: Int(164)
  134. final val TYPED: Int(138)
  135. final val TYPEDEF: Int(131)
  136. final val TYPELAMBDAtype: Int(170)
  137. final val TYPEPARAM: Int(133)
  138. final val TYPEREF: Int(117)
  139. final val TYPEREFdirect: Int(63)
  140. final val TYPEREFin: Int(175)
  141. final val TYPEREFpkg: Int(65)
  142. final val TYPEREFsymbol: Int(116)
  143. final val UNAPPLY: Int(152)
  144. final val UNITconst: Int(2)
  145. final val VALDEF: Int(129)
  146. final val WHILE: Int(145)
  147. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  148. def astTagToString(tag: Int): String
  149. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  150. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  151. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  152. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  153. final val firstASTTreeTag: Int(90)
  154. final val firstLengthTreeTag: Int(128)
  155. final val firstNatASTTreeTag: Int(110)
  156. final val firstNatTreeTag: Int(60)
  157. final val firstSimpleTreeTag: Int(2)
  158. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  159. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  160. final val header: Array[Int]

    The first four bytes of a TASTy file, followed by four values: - MajorVersion: Int - see definition in TastyFormat - MinorVersion: Int - see definition in TastyFormat - ExperimentalVersion: Int - see definition in TastyFormat - ToolingVersion: String - arbitrary length string representing the tool that produced the TASTy.

  161. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  162. def isLegalTag(tag: Int): Boolean

    Useful for debugging

  163. def isModifierTag(tag: Int): Boolean
  164. def isParamTag(tag: Int): Boolean
  165. def isTypeTreeTag(tag: Int): Boolean
  166. def isVersionCompatible(fileMajor: Int, fileMinor: Int, fileExperimental: Int, compilerMajor: Int, compilerMinor: Int, compilerExperimental: Int): Boolean

    This method implements a binary relation (<:<) between two TASTy versions.

    This method implements a binary relation (<:<) between two TASTy versions.

    We label the lhs file and rhs compiler. if file <:< compiler then the TASTy file is valid to be read.

    A TASTy version, e.g. v := 28.0-3 is composed of three fields:

    • v.major == 28
    • v.minor == 0
    • v.experimental == 3

    TASTy versions have a partial order, for example, a <:< b and b <:< a are both false if

    • a and b have different major fields.
    • a and b have the same major & minor fields, but different experimental fields, both non-zero.

    A TASTy version with a zero value for its experimental field is considered to be stable. Files with a stable TASTy version can be read by a compiler with an unstable TASTy version, (where the compiler's TASTy version has a higher minor field).

    A compiler with a stable TASTy version can never read a file with an unstable TASTy version.

    We follow the given algorithm:

    (fileMajor, fileMinor, fileExperimental) match case (compilerMajor, compilerMinor, compilerExperimental) => true // full equality case (compilerMajor, minor, 0) if minor < compilerMinor => true // stable backwards compatibility case _ => false

  167. def nameTagToString(tag: Int): String

    Should be kept in sync with NameTags.

    Should be kept in sync with NameTags. Converts constants to a String representing their identifier, or NotANameTag(tag) if unrecognised.

    For debugging purposes when unpickling names in a TASTy file.

  168. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  169. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  170. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  171. def numRefs(tag: Int): Int

    returns

    If non-negative, the number of leading references (represented as nats) of a length/trees entry. If negative, minus the number of leading non-reference trees.

  172. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  173. def toString(): String
    Definition Classes
    AnyRef → Any
  174. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  175. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  176. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  177. object NameTags extends NameTags

Inherited from AnyRef

Inherited from Any

Ungrouped