Merge branch 'syntax-highlighter-unified' into dev

This commit is contained in:
Kam committed 2026-03-10 23:23:42 -04:00
commit 60ea87bd2c
1 file changed
+6
@@ -9175,6 +9175,12 @@ for (ScriptTypeInfo type:scriptTypes.values()) {
constructor = info.findConstructor(argCount);
}
}
// Second pass: re-parse arguments with expected parameter types from resolved constructor
// This enables SAM type inference for lambda arguments (e.g., Consumer<T> parameters)
if (constructor != null && constructor.getParameters().size() == arguments.size()) {
arguments = parseMethodArguments(openParen + 1, closeParen, constructor, info);
}
// Create MethodCallInfo for constructor
// Use the actual variable name (className) for variables, not the class's simple name