Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,9 @@ public static List<MethodNode> getMethodOverloadsFromCallExpression(MethodCall n
MethodCallExpression methodCallExpr = (MethodCallExpression) node;
ClassNode leftType = getTypeOfNode(methodCallExpr.getObjectExpression(), astVisitor);
if (leftType != null) {
return leftType.getMethods(methodCallExpr.getMethod().getText());
return leftType.getAllDeclaredMethods().stream()
.filter(m -> m.getName().equals(methodCallExpr.getMethod().getText()))
.collect(Collectors.toList());
Comment thread
trustytrojan marked this conversation as resolved.
}
} else if (node instanceof ConstructorCallExpression) {
ConstructorCallExpression constructorCallExpr = (ConstructorCallExpression) node;
Expand Down