spelling: locals in src/System.Management.Automation/engine

This commit is contained in:
Josh Soref
2016-09-01 14:54:41 +00:00
parent b79355b7f0
commit 3f992cd263
9 changed files with 30 additions and 30 deletions
@@ -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;
/// <summary>
/// The cmdlet metadata.
@@ -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();
@@ -1644,13 +1644,13 @@ namespace Microsoft.PowerShell.Commands
{
if (!WildcardPattern.ContainsWildcardCharacters(_property))
{
PSMemberInfoInternalCollection<PSMemberInfo> restuls = new PSMemberInfoInternalCollection<PSMemberInfo>();
PSMemberInfoInternalCollection<PSMemberInfo> results = new PSMemberInfoInternalCollection<PSMemberInfo>();
PSMemberInfo member = _inputObject.Members[_property];
if (member != null)
{
restuls.Add(member);
results.Add(member);
}
return new ReadOnlyPSMemberInfoCollection<PSMemberInfo>(restuls);
return new ReadOnlyPSMemberInfoCollection<PSMemberInfo>(results);
}
ReadOnlyPSMemberInfoCollection<PSMemberInfo> members = _inputObject.Members.Match(_property, PSMemberTypes.All);
@@ -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<CollectionEntry<PSPropertyInfo>> _allPropertiesCollection;
@@ -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<int>(majorVersion, out tempMajorVersion);
@@ -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]);
}
}
}
@@ -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;
}
@@ -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<TKey, TValue>(initialCapicity);
_dict = new Dictionary<TKey, TValue>(initialCapacity);
}
else
{
_keysAndValues = new KeyValuePair<TKey, TValue>[initialCapicity];
_keysAndValues = new KeyValuePair<TKey, TValue>[initialCapacity];
}
}
@@ -504,7 +504,7 @@ namespace System.Management.Automation
Collection<string> filteredVersions = new Collection<string>();
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)
{