Commit Graph
3297 Commits
Author SHA1 Message Date
bigguy345 efd7d96ec7 Casting completely functional 2025-12-29 16:46:03 +02:00
bigguy345 bc05164209 Proper numeric promotion between java types for fetching the correct overload.
i.ie Math.max(20f,20) checks if the second int can be promoted to the nearest matching overload max(float, float), and fetches it
2025-12-29 16:12:44 +02:00
bigguy345 96d12c360d MethodInfo now stores it's java Method 2025-12-29 15:16:53 +02:00
bigguy345 790cfae476 resolveExpressionType now accounts for method arg types when resolving a method, to fetch the matching overload 2025-12-29 15:16:40 +02:00
bigguy345 7e25b1c858 Fetched best method overload according to arg types provided 2025-12-29 15:05:39 +02:00
bigguy345 2ab48129b3 "null" is now a valid assignment/argument type 2025-12-29 02:12:12 +02:00
bigguy345 595efb529c Unified isTypeCompatible across classes 2025-12-29 00:01:54 +02:00
bigguy345 3a2bcd228f Fixed members of script types being unable to reference their type on creation 2025-12-28 23:03:52 +02:00
bigguy345 574c893f8d oops 2025-12-28 22:37:37 +02:00
bigguy345 941cc5e3fd Expression resolving/type resolution framework with operator parsing 2025-12-28 22:36:46 +02:00
bigguy345 c2e0bbedae Small package refactor 2025-12-28 20:33:39 +02:00
bigguy345 534ec7b2c5 Refactored error curly underline rendering to its own helper class 2025-12-28 19:57:10 +02:00
bigguy345 e2a5d254a9 Added error "method signature already defined in this scope" 2025-12-28 19:41:28 +02:00
bigguy345 6d20f5f52c Added error "Cannot return a value from a method with void result type" 2025-12-28 19:04:14 +02:00
bigguy345 3e21757d12 Method declaration error validation + helper classes needed for that 2025-12-28 18:54:10 +02:00
bigguy345 b7333bcf6a Captured full/type/name offsets of method declarations 2025-12-28 18:53:29 +02:00
bigguy345 9aa23ef49d Added external type constructor validation 2025-12-28 16:32:36 +02:00
bigguy345 c1e4e824ab Fixed wrapText not splitting at \n 2025-12-28 16:25:07 +02:00
bigguy345 8b95d61e0f Added constructor error validation 2025-12-28 16:19:15 +02:00
bigguy345 323502aa5e Removed NewExpressionType for constructor calls, replaced with MethodCallInfo 2025-12-28 16:07:28 +02:00
bigguy345 58e2b4f591 disabled hover state click 2025-12-28 15:49:54 +02:00
bigguy345 a5ab3cb443 Removed the NEW_TYPE token, no longer needed 2025-12-28 15:49:41 +02:00
bigguy345 c398977022 Method declarations skip names after "new" keyword 2025-12-28 15:49:22 +02:00
bigguy345 ce5a67eaa2 Added constructors to script class types and hooked up their hover infos 2025-12-28 01:07:21 +02:00
bigguy345 dfc0232e99 Got classes defined in script fully functional 2025-12-28 00:19:00 +02:00
bigguy345 992aea663b Aligned spacings for TYPE_MISMATCH errors 2025-12-27 23:26:09 +02:00
bigguy345 643b5e0d70 Fixed hover info being wrapped to the wrong font width 2025-12-27 22:49:40 +02:00
bigguy345 3b2ac768c6 Error "var already defined in scope" 2025-12-27 22:44:41 +02:00
bigguy345 6400c4a4e8 Fixed declaration hover info being not rendered for resolved method calls 2025-12-27 22:06:33 +02:00
bigguy345 a4eb63917f Proper hover info formatting for declaration 2025-12-27 22:00:03 +02:00
bigguy345 794ff0c9b0 Removed whitespaces from AssingmentInfo's statementStart 2025-12-27 20:52:34 +02:00
bigguy345 17e0782a32 Forgot to check for assignments in method locals 2025-12-27 20:46:40 +02:00
bigguy345 1786d215ad Hooked script fields/methods up properly with modifiers and fixed FINAL assignment errors 2025-12-27 20:21:20 +02:00
bigguy345 9e21e4b47f Added error line separator for hover info 2025-12-27 19:31:14 +02:00
bigguy345 aded664426 Disabled old TYPE_MISMATCH error for fields/methods + their underline rendering, as new AssignmentInfo equivalent replaces these. 2025-12-27 18:58:30 +02:00
bigguy345 bacbc877bd Made AssignmentInfo LHS start from statementStart, modifiers and type inclusive 2025-12-27 18:54:56 +02:00
bigguy345 40d35d2f20 Captured Assignment's statement start and made FULL LINE errors 2025-12-27 18:46:53 +02:00
bigguy345 d645ecc998 Removed redundant 2025-12-27 18:37:34 +02:00
bigguy345 455f09ac68 Captured all external/chained field assignments and their errors for hover info 2025-12-27 18:30:06 +02:00
bigguy345 9402ff5ec5 Captured all assignments of global/local fields 2025-12-27 17:58:42 +02:00
bigguy345 a9cd2ec7ef Added init values to declaration of local/global fields and their hover info 2025-12-27 16:30:12 +02:00
bigguy345 c4bbf6108b Changed method name color in hover info 2025-12-27 16:08:21 +02:00
bigguy345 104a816eef Fixed field declaration unresolving if there's a non-empty comment above its line 2025-12-27 16:03:04 +02:00
bigguy345 50d14d757c /** javadoc stub auto-generation 2025-12-27 15:17:29 +02:00
bigguy345 4b06937385 Added separator line for documentation in hover info 2025-12-27 15:02:57 +02:00
bigguy345 448329386e Added documentation for method/field declarations and displayed it in hover info 2025-12-27 14:51:00 +02:00
bigguy345 4d670f31de Removed declaration from unresolved token hover infos 2025-12-27 13:51:11 +02:00
bigguy345 a7ed8549a9 Added hover info modifiers for script method declarations/fields and chained fields 2025-12-27 00:40:58 +02:00
bigguy345 c694785de3 Accounted for float/double decimal place precision 2025-12-27 00:25:19 +02:00
bigguy345 2e99dffc33 Auto casted 1f, 1.0f to to floats same for doubles 2025-12-27 00:16:07 +02:00