mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 03:22:23 +00:00
Skipped method calls in method declarations
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user