Skip to content

Commit

Permalink
Type parameters for method calls were missing
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <[email protected]>
  • Loading branch information
Rob Stryker committed Apr 8, 2024
1 parent 36f6568 commit be46b38
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,15 @@ private MethodDeclaration convertMethodDecl(JCMethodDecl javac, ASTNode parent)
}

javac.getParameters().stream().map(this::convertVariableDeclaration).forEach(res.parameters()::add);

if( javac.getTypeParameters() != null ) {
Iterator<JCTypeParameter> i = javac.getTypeParameters().iterator();
while(i.hasNext()) {
JCTypeParameter next = i.next();
res.typeParameters().add(convert(next));
}
}

if (javac.getBody() != null) {
Block b = convertBlock(javac.getBody());
res.setBody(b);
Expand Down

0 comments on commit be46b38

Please sign in to comment.