From 3f992cd2637fb06dc46ecb5b55b73758d40435dd Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Thu, 1 Sep 2016 14:54:41 +0000 Subject: [PATCH] spelling: locals in src/System.Management.Automation/engine --- .../engine/CmdletParameterBinderController.cs | 20 +++++++++---------- .../engine/CommandDiscovery.cs | 4 ++-- .../engine/InternalCommands.cs | 6 +++--- .../Serialization/InternalMISerializer.cs | 2 +- .../engine/PSVersionInfo.cs | 2 +- .../engine/ParameterBinderBase.cs | 8 ++++---- .../engine/TypeMetadata.cs | 6 +++--- .../engine/interpreter/Utilities.cs | 8 ++++---- .../singleshell/config/MshSnapinInfo.cs | 4 ++-- 9 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/System.Management.Automation/engine/CmdletParameterBinderController.cs b/src/System.Management.Automation/engine/CmdletParameterBinderController.cs index fefc32cc2..a2f5f3b40 100644 --- a/src/System.Management.Automation/engine/CmdletParameterBinderController.cs +++ b/src/System.Management.Automation/engine/CmdletParameterBinderController.cs @@ -2056,7 +2056,7 @@ namespace System.Management.Automation if (_currentParameterSetFlag == defaultParameterSet) Command.SetParameterSetName(CurrentParameterSetName); else - _parameterSetToBePrioritizedInPipelingBinding = defaultParameterSet; + _parameterSetToBePrioritizedInPipelineBinding = defaultParameterSet; } } // We need to analyze the prompting data that was gathered to determine what parameter @@ -2082,7 +2082,7 @@ namespace System.Management.Automation } } } - else if (_parameterSetToBePrioritizedInPipelingBinding == 0) + else if (_parameterSetToBePrioritizedInPipelineBinding == 0) { // We have more than one valid parameter set. Need to figure out which one to // use. @@ -2573,7 +2573,7 @@ namespace System.Management.Automation if (_currentParameterSetFlag != chosenMandatorySet) { - _parameterSetToBePrioritizedInPipelingBinding = chosenMandatorySet; + _parameterSetToBePrioritizedInPipelineBinding = chosenMandatorySet; } } } @@ -3459,15 +3459,15 @@ namespace System.Management.Automation _currentParameterSetFlag = _prePipelineProcessingParameterSetFlags; uint validParameterSets = _currentParameterSetFlag; - bool needToPrioritizeOneSpecificParameterSet = _parameterSetToBePrioritizedInPipelingBinding != 0; + bool needToPrioritizeOneSpecificParameterSet = _parameterSetToBePrioritizedInPipelineBinding != 0; int steps = needToPrioritizeOneSpecificParameterSet ? 2 : 1; if (needToPrioritizeOneSpecificParameterSet) { - // _parameterSetToBePrioritizedInPipelingBinding is set, so we are certain that the specified parameter set must be valid, + // _parameterSetToBePrioritizedInPipelineBinding is set, so we are certain that the specified parameter set must be valid, // and it's not the only valid parameter set. - Diagnostics.Assert((_currentParameterSetFlag & _parameterSetToBePrioritizedInPipelingBinding) != 0, "_parameterSetToBePrioritizedInPipelingBinding should be valid if it's set"); - validParameterSets = _parameterSetToBePrioritizedInPipelingBinding; + Diagnostics.Assert((_currentParameterSetFlag & _parameterSetToBePrioritizedInPipelineBinding) != 0, "_parameterSetToBePrioritizedInPipelineBinding should be valid if it's set"); + validParameterSets = _parameterSetToBePrioritizedInPipelineBinding; } for (int i = 0; i < steps; i++) @@ -3501,8 +3501,8 @@ namespace System.Management.Automation if (needToPrioritizeOneSpecificParameterSet && i == 0) { // If the prioritized set can be bound successfully, there is no need to do the second round binding - if (_currentParameterSetFlag == _parameterSetToBePrioritizedInPipelingBinding) break; - validParameterSets = _currentParameterSetFlag & (~_parameterSetToBePrioritizedInPipelingBinding); + if (_currentParameterSetFlag == _parameterSetToBePrioritizedInPipelineBinding) break; + validParameterSets = _currentParameterSetFlag & (~_parameterSetToBePrioritizedInPipelineBinding); } } @@ -4089,7 +4089,7 @@ namespace System.Management.Automation #endregion DefaultParameterBindingStructures - private uint _parameterSetToBePrioritizedInPipelingBinding = 0; + private uint _parameterSetToBePrioritizedInPipelineBinding = 0; /// /// The cmdlet metadata. diff --git a/src/System.Management.Automation/engine/CommandDiscovery.cs b/src/System.Management.Automation/engine/CommandDiscovery.cs index 743ecbe4a..e6932db53 100644 --- a/src/System.Management.Automation/engine/CommandDiscovery.cs +++ b/src/System.Management.Automation/engine/CommandDiscovery.cs @@ -558,7 +558,7 @@ namespace System.Management.Automation // #Requires -Module internal static void VerifyScriptRequirements(ExternalScriptInfo scriptInfo, ExecutionContext context) { - VerifyElevatedPriveleges(scriptInfo); + VerifyElevatedPrivileges(scriptInfo); VerifyPSVersion(scriptInfo); VerifyPSEdition(scriptInfo); VerifyRequiredModules(scriptInfo, context); @@ -616,7 +616,7 @@ namespace System.Management.Automation } } - internal static void VerifyElevatedPriveleges(ExternalScriptInfo scriptInfo) + internal static void VerifyElevatedPrivileges(ExternalScriptInfo scriptInfo) { bool requiresElevation = scriptInfo.RequiresElevation; bool isAdministrator = Utils.IsAdministrator(); diff --git a/src/System.Management.Automation/engine/InternalCommands.cs b/src/System.Management.Automation/engine/InternalCommands.cs index a523e62e9..65daebd1c 100644 --- a/src/System.Management.Automation/engine/InternalCommands.cs +++ b/src/System.Management.Automation/engine/InternalCommands.cs @@ -1644,13 +1644,13 @@ namespace Microsoft.PowerShell.Commands { if (!WildcardPattern.ContainsWildcardCharacters(_property)) { - PSMemberInfoInternalCollection restuls = new PSMemberInfoInternalCollection(); + PSMemberInfoInternalCollection results = new PSMemberInfoInternalCollection(); PSMemberInfo member = _inputObject.Members[_property]; if (member != null) { - restuls.Add(member); + results.Add(member); } - return new ReadOnlyPSMemberInfoCollection(restuls); + return new ReadOnlyPSMemberInfoCollection(results); } ReadOnlyPSMemberInfoCollection members = _inputObject.Members.Match(_property, PSMemberTypes.All); diff --git a/src/System.Management.Automation/engine/PSMI/Serialization/InternalMISerializer.cs b/src/System.Management.Automation/engine/PSMI/Serialization/InternalMISerializer.cs index fee647292..8e8158997 100644 --- a/src/System.Management.Automation/engine/PSMI/Serialization/InternalMISerializer.cs +++ b/src/System.Management.Automation/engine/PSMI/Serialization/InternalMISerializer.cs @@ -42,7 +42,7 @@ namespace System.Management.Automation /// Used by Remoting infrastructure. This TypeTable instance /// will be used by Serializer if ExecutionContext is not - /// avaliable (to get the ExecutionContext's TypeTable) + /// available (to get the ExecutionContext's TypeTable) private TypeTable _typeTable; private Collection> _allPropertiesCollection; diff --git a/src/System.Management.Automation/engine/PSVersionInfo.cs b/src/System.Management.Automation/engine/PSVersionInfo.cs index 9e774c87d..936a1a6c3 100644 --- a/src/System.Management.Automation/engine/PSVersionInfo.cs +++ b/src/System.Management.Automation/engine/PSVersionInfo.cs @@ -228,7 +228,7 @@ namespace System.Management.Automation } - internal static string GetRegisteryVersionKeyForSnapinDiscovery(string majorVersion) + internal static string GetRegistryVersionKeyForSnapinDiscovery(string majorVersion) { int tempMajorVersion = 0; LanguagePrimitives.TryConvertTo(majorVersion, out tempMajorVersion); diff --git a/src/System.Management.Automation/engine/ParameterBinderBase.cs b/src/System.Management.Automation/engine/ParameterBinderBase.cs index b8d05c342..007601fcf 100644 --- a/src/System.Management.Automation/engine/ParameterBinderBase.cs +++ b/src/System.Management.Automation/engine/ParameterBinderBase.cs @@ -2052,14 +2052,14 @@ namespace System.Management.Automation if (_dictionary.ImplicitUsingParameters == null) { // Handle downlevel V4 case where using parameters are passed as an array list. - IList implictArrayUsingParameters = PSObject.Base(obj) as IList; - if ((implictArrayUsingParameters != null) && (implictArrayUsingParameters.Count > 0)) + IList implicitArrayUsingParameters = PSObject.Base(obj) as IList; + if ((implicitArrayUsingParameters != null) && (implicitArrayUsingParameters.Count > 0)) { // Convert array to hash table. _dictionary.ImplicitUsingParameters = new Hashtable(); - for (int index = 0; index < implictArrayUsingParameters.Count; index++) + for (int index = 0; index < implicitArrayUsingParameters.Count; index++) { - _dictionary.ImplicitUsingParameters.Add(index, implictArrayUsingParameters[index]); + _dictionary.ImplicitUsingParameters.Add(index, implicitArrayUsingParameters[index]); } } } diff --git a/src/System.Management.Automation/engine/TypeMetadata.cs b/src/System.Management.Automation/engine/TypeMetadata.cs index 1cf5fa9ee..ede36faae 100644 --- a/src/System.Management.Automation/engine/TypeMetadata.cs +++ b/src/System.Management.Automation/engine/TypeMetadata.cs @@ -704,10 +704,10 @@ namespace System.Management.Automation } // ConstrainedLanguage note - This conversion is analyzed, but actually invoked via regular conversion. - var convertionData = LanguagePrimitives.FigureConversion(dotNetType, this.ParameterType); - if (convertionData != null) + var conversionData = LanguagePrimitives.FigureConversion(dotNetType, this.ParameterType); + if (conversionData != null) { - if ((int)(convertionData.Rank) >= (int)(ConversionRank.NumericImplicitS2A)) + if ((int)(conversionData.Rank) >= (int)(ConversionRank.NumericImplicitS2A)) { return true; } diff --git a/src/System.Management.Automation/engine/interpreter/Utilities.cs b/src/System.Management.Automation/engine/interpreter/Utilities.cs index f655f083e..489855474 100644 --- a/src/System.Management.Automation/engine/interpreter/Utilities.cs +++ b/src/System.Management.Automation/engine/interpreter/Utilities.cs @@ -376,15 +376,15 @@ namespace System.Management.Automation.Interpreter { } - public HybridReferenceDictionary(int initialCapicity) + public HybridReferenceDictionary(int initialCapacity) { - if (initialCapicity > _arraySize) + if (initialCapacity > _arraySize) { - _dict = new Dictionary(initialCapicity); + _dict = new Dictionary(initialCapacity); } else { - _keysAndValues = new KeyValuePair[initialCapicity]; + _keysAndValues = new KeyValuePair[initialCapacity]; } } diff --git a/src/System.Management.Automation/singleshell/config/MshSnapinInfo.cs b/src/System.Management.Automation/singleshell/config/MshSnapinInfo.cs index d79b4aa1c..cc9b1eabb 100644 --- a/src/System.Management.Automation/singleshell/config/MshSnapinInfo.cs +++ b/src/System.Management.Automation/singleshell/config/MshSnapinInfo.cs @@ -504,7 +504,7 @@ namespace System.Management.Automation Collection filteredVersions = new Collection(); foreach (string version in versions) { - string temp = PSVersionInfo.GetRegisteryVersionKeyForSnapinDiscovery(version); + string temp = PSVersionInfo.GetRegistryVersionKeyForSnapinDiscovery(version); if (string.IsNullOrEmpty(temp)) { temp = version; @@ -1173,7 +1173,7 @@ namespace System.Management.Automation Dbg.Assert(!string.IsNullOrEmpty(psVersion), "caller should validate the parameter"); Dbg.Assert(rootKey != null, "caller should validate the parameter"); - string versionKey = PSVersionInfo.GetRegisteryVersionKeyForSnapinDiscovery(psVersion); + string versionKey = PSVersionInfo.GetRegistryVersionKeyForSnapinDiscovery(psVersion); RegistryKey versionRoot = rootKey.OpenSubKey(versionKey); if (versionRoot == null) {