PowerShell/test/powershell/engine/ParameterBinding
Dongbo Wang 63cf0c330c
Allow explicitly specified named parameter to supersede the same one from hashtable splatting (#13162)
Allow explicitly specified named parameter to supersede the same one from hashtable splatting.
The work is done in parameter binder, so that parameters can be resolved to cover a parameter's official name, alias name, and unambiguous partial prefix name.

The changes covers covers Hashtable splatting in 3 scenarios:

- Cmdlet or advanced script invocation;
- Simple function invocation;
- ScriptBlock.GetPowerShell(...), where the script block contains command invocation only and uses Hashtable splatting.

Some code refactoring is done to ParameterBinderController to avoid redundant code being duplicated in CmdletParameterBinderController and ScriptParameterBinderController.
2020-08-05 10:59:53 +05:00
..
BooleanParameterDCR.Tests.ps1 Update copyright notice to latest guidance (#12190) 2020-03-24 11:08:37 -07:00
NullableBooleanDCR.Tests.ps1 Update copyright notice to latest guidance (#12190) 2020-03-24 11:08:37 -07:00
ParameterBinding.Tests.ps1 Update copyright notice to latest guidance (#12190) 2020-03-24 11:08:37 -07:00
Splatting.Tests.ps1 Allow explicitly specified named parameter to supersede the same one from hashtable splatting (#13162) 2020-08-05 10:59:53 +05:00
StaticParameterBinder.Tests.ps1 Update copyright notice to latest guidance (#12190) 2020-03-24 11:08:37 -07:00