Skip to content

Commit

Permalink
Fix prefix again
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Oct 10, 2023
1 parent 7fcd53a commit f981ddd
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ public J visitCallExpression(KtCallExpression expression, ExecutionContext data)
} else if (type == null || type == PsiElementAssociations.ExpressionType.METHOD_INVOCATION) {
J.Identifier name = (J.Identifier) expression.getCalleeExpression().accept(this, data);
if (!expression.getTypeArguments().isEmpty()) {
Expression expr = (Expression) expression.accept(this, data);
// Expression expr = (Expression) expression.accept(this, data);
throw new UnsupportedOperationException("TODO");
// name = new J.ParameterizedType(
// randomId(),
Expand Down Expand Up @@ -1496,7 +1496,10 @@ public J visitDotQualifiedExpression(KtDotQualifiedExpression expression, Execut
.withPrefix(prefix(expression.getReceiverExpression())),
suffix(expression.getReceiverExpression())
)
).withPrefix(prefix(expression));
)
.withName(methodInvocation.getName().withPrefix(methodInvocation.getPrefix()))
.withPrefix(prefix(expression))
;
return methodInvocation;
}
return new J.MethodInvocation(
Expand Down

0 comments on commit f981ddd

Please sign in to comment.