Skipped method calls in method declarations

This commit is contained in:
bigguy345 committed 2026-01-05 02:14:36 +02:00
1 parent 87931e6c34
commit ad5528c25a
1 file changed
+9
@@ -2351,6 +2351,15 @@ public class ScriptDocument {
if (isInImportOrPackage(nameStart))
continue;
boolean skip = false;
for (MethodInfo decl : methods)
if (decl.getNameOffset() == nameStart)
// This is a method declaration, not a call
skip = true;
if (skip)
continue;
// Find the opening parenthesis by scanning forward from the method name end
// The regex includes \( but we scan manually to be safe
int openParen = nameEnd;