mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-07 08:26:11 +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.
8 lines
120 B
Ruby
8 lines
120 B
Ruby
def greet(name, greeting = "Hello")
|
|
"#{greeting}, #{name}"
|
|
end
|
|
|
|
def process
|
|
greet("Alice")
|
|
greet("Bob", "Hi")
|
|
end
|