mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-07 02:58:02 +00:00
Add requiredParameterCount to SymbolDefinition and MethodSignature, enabling range-based arity filtering in filterCallableCandidates. Calls with omitted optional/default arguments now resolve correctly. Supported: TS, Python, Kotlin, C#, C++, PHP, Ruby (7 languages). Detection via OPTIONAL_PARAM_TYPES set + hasDefaultValue helper. 9 integration tests added across all 7 languages.
6 lines
143 B
Kotlin
6 lines
143 B
Kotlin
fun greet(name: String, greeting: String = "Hello"): String = "$greeting, $name!"
|
|
|
|
fun process() {
|
|
greet("Alice")
|
|
greet("Bob", "Hi")
|
|
}
|