File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -503,6 +503,14 @@ object Erasure extends TypeTestsCasts{
503503 traverse(newStats, oldStats)
504504 }
505505
506+ /** Create a bridge DefDef which overrides a parent method.
507+ *
508+ * @param newDef The DefDef which needs bridging because its signature
509+ * does not match the parent method signature
510+ * @param parentSym A symbol corresponding to the parent method to override
511+ * @return A new DefDef whose signature matches the parent method
512+ * and whose body only contains a call to newDef
513+ */
506514 def makeBridgeDef (newDef : tpd.DefDef , parentSym : Symbol )(implicit ctx : Context ): tpd.DefDef = {
507515 val newDefSym = newDef.symbol
508516 val currentClass = newDefSym.owner.asClass
You can’t perform that action at this time.
0 commit comments