Skip to content

Commit

Permalink
Add annotation export in methodNodebuilder #185
Browse files Browse the repository at this point in the history
  • Loading branch information
lehvolk committed Oct 10, 2023
1 parent 099fc26 commit 9af27aa
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@ class MethodNodeBuilder(
mn.tryCatchBlocks = tryCatchNodeList
mn.maxLocals = localIndex
mn.maxStack = maxStack + 1
//At this moment, we're just copying annotations from original method without any modifications
with(method.asmNode()) {
mn.visibleAnnotations = visibleAnnotations
mn.visibleTypeAnnotations = visibleTypeAnnotations
mn.visibleLocalVariableAnnotations = visibleLocalVariableAnnotations
mn.visibleParameterAnnotations = visibleParameterAnnotations
mn.invisibleAnnotations = invisibleAnnotations
mn.invisibleTypeAnnotations = invisibleTypeAnnotations
mn.invisibleLocalVariableAnnotations = invisibleLocalVariableAnnotations
mn.invisibleParameterAnnotations = invisibleParameterAnnotations
}
return mn
}

Expand Down

0 comments on commit 9af27aa

Please sign in to comment.