From 1f69f98dfcc867577debf466e9d7cf36fa850ae3 Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Sun, 5 Jan 2020 21:05:22 -0800 Subject: [PATCH] Use named argument when passing null --- src/Compilers/Core/MSBuildTask/CommandLineBuilderExtension.cs | 2 +- src/Compilers/Core/MSBuildTask/ManagedCompiler.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Compilers/Core/MSBuildTask/CommandLineBuilderExtension.cs b/src/Compilers/Core/MSBuildTask/CommandLineBuilderExtension.cs index ec8e377b79e..299f3b66e88 100644 --- a/src/Compilers/Core/MSBuildTask/CommandLineBuilderExtension.cs +++ b/src/Compilers/Core/MSBuildTask/CommandLineBuilderExtension.cs @@ -146,7 +146,7 @@ internal void AppendSwitchIfNotNull string[] attributes ) { - AppendSwitchIfNotNull(switchName, parameters, attributes, null /* treatAsFlag */); + AppendSwitchIfNotNull(switchName, parameters, attributes, treatAsFlags: null); } /// diff --git a/src/Compilers/Core/MSBuildTask/ManagedCompiler.cs b/src/Compilers/Core/MSBuildTask/ManagedCompiler.cs index 780718a0a30..8333170bbfa 100644 --- a/src/Compilers/Core/MSBuildTask/ManagedCompiler.cs +++ b/src/Compilers/Core/MSBuildTask/ManagedCompiler.cs @@ -954,7 +954,7 @@ protected override bool ValidateParameters() /// internal static bool ListHasNoDuplicateItems(ITaskItem[] itemList, string parameterName, TaskLoggingHelper log) { - return ListHasNoDuplicateItems(itemList, parameterName, null, log); + return ListHasNoDuplicateItems(itemList, parameterName, disambiguatingMetadataName: null, log); } /// -- GitLab