@@ -230,7 +230,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
230
230
231
231
private def emitArgument (av : AnnotationVisitor ,
232
232
name : String ,
233
- arg : Tree , bcodeStore : BCodeHelpers )(innerClasesStore : bcodeStore.BCInnerClassGen ) {
233
+ arg : Tree , bcodeStore : BCodeHelpers )(innerClasesStore : bcodeStore.BCInnerClassGen ): Unit = {
234
234
(arg : @ unchecked) match {
235
235
236
236
case Literal (const @ Constant (_)) =>
@@ -296,7 +296,8 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
296
296
}
297
297
}
298
298
299
- override def emitAnnotations (cw : asm.ClassVisitor , annotations : List [Annotation ], bcodeStore : BCodeHelpers )(innerClasesStore : bcodeStore.BCInnerClassGen ) {
299
+ override def emitAnnotations (cw : asm.ClassVisitor , annotations : List [Annotation ], bcodeStore : BCodeHelpers )
300
+ (innerClasesStore : bcodeStore.BCInnerClassGen ) = {
300
301
for (annot <- annotations; if shouldEmitAnnotation(annot)) {
301
302
val typ = annot.atp
302
303
val assocs = annot.assocs
@@ -305,14 +306,16 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
305
306
}
306
307
}
307
308
308
- private def emitAssocs (av : asm.AnnotationVisitor , assocs : List [(Name , Object )], bcodeStore : BCodeHelpers )(innerClasesStore : bcodeStore.BCInnerClassGen ) {
309
+ private def emitAssocs (av : asm.AnnotationVisitor , assocs : List [(Name , Object )], bcodeStore : BCodeHelpers )
310
+ (innerClasesStore : bcodeStore.BCInnerClassGen ) = {
309
311
for ((name, value) <- assocs) {
310
312
emitArgument(av, name.toString(), value.asInstanceOf [Tree ], bcodeStore)(innerClasesStore)
311
313
}
312
314
av.visitEnd()
313
315
}
314
316
315
- override def emitAnnotations (mw : asm.MethodVisitor , annotations : List [Annotation ], bcodeStore : BCodeHelpers )(innerClasesStore : bcodeStore.BCInnerClassGen ) {
317
+ override def emitAnnotations (mw : asm.MethodVisitor , annotations : List [Annotation ], bcodeStore : BCodeHelpers )
318
+ (innerClasesStore : bcodeStore.BCInnerClassGen ) = {
316
319
for (annot <- annotations; if shouldEmitAnnotation(annot)) {
317
320
val typ = annot.atp
318
321
val assocs = annot.assocs
@@ -321,7 +324,8 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
321
324
}
322
325
}
323
326
324
- override def emitAnnotations (fw : asm.FieldVisitor , annotations : List [Annotation ], bcodeStore : BCodeHelpers )(innerClasesStore : bcodeStore.BCInnerClassGen ) {
327
+ override def emitAnnotations (fw : asm.FieldVisitor , annotations : List [Annotation ], bcodeStore : BCodeHelpers )
328
+ (innerClasesStore : bcodeStore.BCInnerClassGen ) = {
325
329
for (annot <- annotations; if shouldEmitAnnotation(annot)) {
326
330
val typ = annot.atp
327
331
val assocs = annot.assocs
@@ -330,7 +334,8 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
330
334
}
331
335
}
332
336
333
- override def emitParamAnnotations (jmethod : asm.MethodVisitor , pannotss : List [List [Annotation ]], bcodeStore : BCodeHelpers )(innerClasesStore : bcodeStore.BCInnerClassGen ) {
337
+ override def emitParamAnnotations (jmethod : asm.MethodVisitor , pannotss : List [List [Annotation ]], bcodeStore : BCodeHelpers )
338
+ (innerClasesStore : bcodeStore.BCInnerClassGen ): Unit = {
334
339
val annotationss = pannotss map (_ filter shouldEmitAnnotation)
335
340
if (annotationss forall (_.isEmpty)) return
336
341
for ((annots, idx) <- annotationss.zipWithIndex;
0 commit comments