Skip to content

Commit d94f0b8

Browse files
committed
Change name of TASTY attribute to TASTY
It does not matter whether it comes from Dotty or elsewhere. We can record the name of the producer in a section of the format itself.
1 parent 2cab739 commit d94f0b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dotty/tools/backend/jvm/GenBCode.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class GenBCodePipeline(val entryPoints: List[Symbol], val int: DottyBackendInter
178178
if (claszSymbol.isClass) // @DarkDimius is this test needed here?
179179
for (pickler <- ctx.compilationUnit.picklers.get(claszSymbol.asClass)) {
180180
val binary = pickler.assembleParts()
181-
val dataAttr = new CustomAttr(nme.DottyTASTYATTR.toString, binary)
181+
val dataAttr = new CustomAttr(nme.TASTYATTR.toString, binary)
182182
plainC.visitAttribute(dataAttr)
183183
}
184184

src/dotty/tools/dotc/core/StdNames.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ object StdNames {
215215
final val RuntimeParamAnnotationATTR: N = "RuntimeVisibleParameterAnnotations" // RetentionPolicy.RUNTIME (annotations on parameters)
216216
final val ScalaATTR: N = "Scala"
217217
final val ScalaSignatureATTR: N = "ScalaSig"
218-
final val DottyTASTYATTR: N = "DottyTASTY"
218+
final val TASTYATTR: N = "TASTY"
219219
final val SignatureATTR: N = "Signature"
220220
final val SourceFileATTR: N = "SourceFile"
221221
final val SyntheticATTR: N = "Synthetic"

0 commit comments

Comments
 (0)