mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 18:57:32 +00:00
Show 'function' instead of 'void' or other return type for hover info of JS method declarations
This commit is contained in:
1 parent
a107e045eb
commit
95897dc746
1 file changed
+3
-1
+3
-1
@@ -1125,7 +1125,9 @@ public class TokenHoverInfo {
|
||||
|
||||
// Return type
|
||||
TypeInfo returnType = methodInfo.getReturnType();
|
||||
if (returnType != null) {
|
||||
if (ScriptDocument.INSTANCE.isJavaScript())
|
||||
addSegment("function ", TokenType.KEYWORD.getHexColor());
|
||||
else if (returnType != null) {
|
||||
addTypeSegments(returnType);
|
||||
addSegment(" ", TokenType.DEFAULT.getHexColor());
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user