mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-08-28 05:25:25 +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.
11 lines
251 B
Python
11 lines
251 B
Python
def greet(name: str, greeting: str = "Hello") -> str:
|
|
return greeting + ", " + name
|
|
|
|
def search(query: str, limit: int = 10) -> list:
|
|
return []
|
|
|
|
def process():
|
|
greet("alice")
|
|
greet("bob", "Hi")
|
|
search("test")
|
|
search("test", 5)
|