dscanner/analysis/mismatched_args.d: Replace deprecated DSymbol.argNames

Replace deprecated member with functionParametes.map!`a.name`

Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
This commit is contained in:
Andrei Horodniceanu 2025-07-06 17:24:17 +03:00
parent dc907e4a24
commit b7bcc8ac28
No known key found for this signature in database
GPG Key ID: D4D2730BE6398547
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ final class MismatchedArgumentCheck : BaseAnalyzer
{ {
// The cast is a hack because .array() confuses the compiler's overload // The cast is a hack because .array() confuses the compiler's overload
// resolution code. // resolution code.
const(istring)[] params = sym is null ? [] : sym.argNames[].map!(a => cast() a).array(); const(istring)[] params = sym is null ? [] : sym.functionParameters.map!(a => a.name).array();
const ArgMismatch[] mismatches = compareArgsToParams(params, args); const ArgMismatch[] mismatches = compareArgsToParams(params, args);
if (mismatches.length == 0) if (mismatches.length == 0)
matched = true; matched = true;