mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-05 02:43:32 +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.
13 lines
287 B
C#
13 lines
287 B
C#
public class Greeter {
|
|
public string Greet(string name, string greeting = "Hello") {
|
|
return greeting + ", " + name;
|
|
}
|
|
}
|
|
|
|
public class Program {
|
|
public static void Main() {
|
|
var g = new Greeter();
|
|
g.Greet("Alice");
|
|
g.Greet("Bob", "Hi");
|
|
}
|
|
}
|