mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 05:19:41 +00:00
Disabled old TYPE_MISMATCH error for fields/methods + their underline rendering, as new AssignmentInfo equivalent replaces these.
This commit is contained in:
1 parent
bacbc877bd
commit
aded664426
3 files changed
+6
-6
No files matched your search
@@ -94,8 +94,8 @@ public class FieldAccessInfo {
|
||||
TypeInfo fieldType = resolvedField.getDeclaredType();
|
||||
if (fieldType != null && !isTypeCompatible(fieldType, expectedType)) {
|
||||
//extra space is necessary for alignment
|
||||
setError(ErrorType.TYPE_MISMATCH, "Provided type: " + fieldType.getSimpleName()+
|
||||
"\nRequired: " + expectedType.getSimpleName());
|
||||
// setError(ErrorType.TYPE_MISMATCH, "Provided type: " + fieldType.getSimpleName()+
|
||||
// "\nRequired: " + expectedType.getSimpleName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -318,8 +318,8 @@ public class MethodCallInfo {
|
||||
if (expectedType != null && resolvedMethod != null) {
|
||||
TypeInfo returnType = resolvedMethod.getReturnType();
|
||||
if (returnType != null && !isTypeCompatible(returnType, expectedType)) {
|
||||
setError(ErrorType.RETURN_TYPE_MISMATCH,
|
||||
"Required type: " + expectedType.getSimpleName() + ", Provided: " + returnType.getSimpleName());
|
||||
// setError(ErrorType.RETURN_TYPE_MISMATCH,
|
||||
// "Required type: " + expectedType.getSimpleName() + ", Provided: " + returnType.getSimpleName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -309,7 +309,7 @@ public class ScriptLine {
|
||||
String beforeMethod = lineText.substring(0, lineLocalStart);
|
||||
int beforeWidth = ClientProxy.Font.width(beforeMethod);
|
||||
int methodWidth = ClientProxy.Font.width(call.getMethodName());
|
||||
drawCurlyUnderline(lineStartX + beforeWidth, baselineY, methodWidth, 0xFF5555);
|
||||
// drawCurlyUnderline(lineStartX + beforeWidth, baselineY, methodWidth, 0xFF5555);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -376,7 +376,7 @@ public class ScriptLine {
|
||||
String beforeField = lineText.substring(0, lineLocalStart);
|
||||
int beforeWidth = ClientProxy.Font.width(beforeField);
|
||||
int fieldWidth = ClientProxy.Font.width(access.getFieldName());
|
||||
drawCurlyUnderline(lineStartX + beforeWidth, baselineY, fieldWidth, 0xFF5555);
|
||||
// drawCurlyUnderline(lineStartX + beforeWidth, baselineY, fieldWidth, 0xFF5555);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user