Merge pull request #2259 from jsoref/spelling-debug

Spelling debug
This commit is contained in:
Sergei Vorobev
2016-09-14 19:04:34 -07:00
committed by GitHub
8 changed files with 10 additions and 10 deletions
@@ -6923,7 +6923,7 @@ namespace System.Management.Automation
{
// ConstrainedLanguage has already been applied as necessary when we construct CompletionContext
Diagnostics.Assert(!(ExecutionContext.HasEverUsedConstrainedLanguage && executionContext.LanguageMode != PSLanguageMode.ConstrainedLanguage),
"If the runspace has ever used constrained language mode, then the current language mode should already be set to contrained language");
"If the runspace has ever used constrained language mode, then the current language mode should already be set to constrained language");
// We're passing 'true' here for isTrustedInput, because SafeExprEvaluator ensures that the AST
// has no dangerous side-effects such as arbitrary expression evaluation. It does require variable
@@ -240,7 +240,7 @@ namespace System.Management.Automation.Remoting
case RemoteSessionEvent.KeyReceived:
{
Dbg.Assert(_state == RemoteSessionState.EstablishedAndKeySent,
"Key Receving can only be raised after reaching the Established state");
"Key Receiving can only be raised after reaching the Established state");
if (_state == RemoteSessionState.EstablishedAndKeySent)
{
@@ -506,7 +506,7 @@ namespace System.Management.Automation.Remoting
{
lock (_syncObject)
{
s_trace.WriteLine("Event recieved : {0} for {1}", arg.StateEvent, _id);
s_trace.WriteLine("Event received : {0} for {1}", arg.StateEvent, _id);
if (clearQueuedEvents)
{
_processPendingEventsQueue.Clear();
@@ -477,7 +477,7 @@ namespace System.Management.Automation.Remoting
}
catch (System.OverflowException)
{
s_baseTracer.WriteLine("Fragement too big.");
s_baseTracer.WriteLine("Fragment too big.");
ResetReceiveData();
PSRemotingTransportException e = new PSRemotingTransportException(RemotingErrorIdStrings.ObjectIsTooBig);
throw e;
@@ -641,7 +641,7 @@ namespace System.Management.Automation
case RemotingDataType.RemotePowerShellHostResponseData:
{
Dbg.Assert(HostResponseReceived != null,
"ServerPowerShellDriver should subscribe to all data strucutre handler events");
"ServerPowerShellDriver should subscribe to all data structure handler events");
RemoteHostResponse remoteHostResponse = RemoteHostResponse.Decode(receivedData.Data);
@@ -2178,7 +2178,7 @@ namespace System.Management.Automation.Language
return (errorSuggestion ??
new DynamicMetaObject(
Compiler.CreateThrow(typeof(object), typeof(PSNotImplementedException), "Unimplemented operaton"),
Compiler.CreateThrow(typeof(object), typeof(PSNotImplementedException), "Unimplemented operation"),
target.CombineRestrictions(arg))).WriteToDebugLog(this);
}
@@ -983,7 +983,7 @@ namespace System.Management.Automation
}
string name = psvar.Name;
Diagnostics.Assert(!(string.Equals(name, "this") || string.Equals(name, "_") || string.Equals(name, "input")),
"The list of variables to set in the scriptblock's scope cannot contain 'this', '_' or 'input'. These variables shoujld be removed before passing the collection to this routine.");
"The list of variables to set in the scriptblock's scope cannot contain 'this', '_' or 'input'. These variables should be removed before passing the collection to this routine.");
index++;
newScope.Variables.Add(name, psvar);
}
@@ -3625,7 +3625,7 @@ namespace System.Management.Automation
else
{
//We have an unknown tag
s_trace.WriteLine("Unknwon tag {0} encountered", _reader.LocalName);
s_trace.WriteLine("Unknown tag {0} encountered", _reader.LocalName);
if (UnknownTagsAllowed)
{
Skip();
@@ -3903,7 +3903,7 @@ namespace System.Management.Automation
Dbg.Assert(ct == ContainerType.Enumerable ||
ct == ContainerType.List ||
ct == ContainerType.Queue ||
ct == ContainerType.Stack, "ct should be queue, stack, enumberable or list");
ct == ContainerType.Stack, "ct should be queue, stack, enumerable or list");
ArrayList list = new ArrayList();
if (ReadStartElementAndHandleEmpty(_reader.LocalName))
@@ -248,7 +248,7 @@ namespace Microsoft.PowerShell.Commands
catch (ArgumentException ae)
{
ThrowError(resolvedPath,
"InvalidCharacetersInPath", ae, ErrorCategory.InvalidArgument);
"InvalidCharactersInPath", ae, ErrorCategory.InvalidArgument);
}
// looks like saving succeeded.