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:
parent
dc907e4a24
commit
b7bcc8ac28
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue