spelling: comments in src/System.Management.Automation/engine/interpreter

This commit is contained in:
Josh Soref 2016-08-28 05:17:13 +00:00
parent 4d64abd01d
commit 8d58abcc5f
7 changed files with 10 additions and 10 deletions

View file

@ -48,7 +48,7 @@ namespace System.Management.Automation.Interpreter
internal int _stackDepth = UnknownDepth;
internal int _continuationStackDepth = UnknownDepth;
// Offsets of forward branching instructions targetting this label
// Offsets of forward branching instructions targeting this label
// that need to be updated after we emit the label.
private List<int> _forwardBranchFixups;

View file

@ -80,7 +80,7 @@ namespace System.Management.Automation.Interpreter {
/// <summary>
/// Fast creation works if we have a known primitive types for the entire
/// method siganture. If we have any non-primitive types then FastCreate
/// method signature. If we have any non-primitive types then FastCreate
/// falls back to SlowCreate which works for all types.
///
/// Fast creation is fast because it avoids using reflection (MakeGenericType

View file

@ -376,7 +376,7 @@ namespace System.Management.Automation.Interpreter
// rethrow if there is no catch blocks defined for this try block
if (!_tryHandler.IsCatchBlockExist) { throw; }
// Search for the best handler in the TryCatchFianlly block. If no suitable handler is found, rethrow
// Search for the best handler in the TryCatchFinally block. If no suitable handler is found, rethrow
ExceptionHandler exHandler;
frame.InstructionIndex += _tryHandler.GotoHandler(frame, exception, out exHandler);
if (exHandler == null) { throw; }
@ -484,7 +484,7 @@ namespace System.Management.Automation.Interpreter
{
// If _pendingContinuation == -1 then we were getting into the finally block because an exception was thrown
// in this case we need to set the stack depth
// Else we were getting into this finnaly block from a 'Goto' jump, and the stack depth is alreayd set properly
// Else we were getting into this finally block from a 'Goto' jump, and the stack depth is already set properly
if (!frame.IsJumpHappened())
{
frame.SetStackDepth(GetLabel(frame).StackDepth);

View file

@ -18,7 +18,7 @@ using BigInt = System.Numerics.BigInteger;
#endif
#if CORECLR
// Used for 'GetField' which is not available under 'Type' in CoreClR but provided as an extenstion method in 'System.Reflection.TypeExtensions'
// Used for 'GetField' which is not available under 'Type' in CoreClR but provided as an extension method in 'System.Reflection.TypeExtensions'
using System.Reflection;
#endif

View file

@ -147,7 +147,7 @@ namespace System.Management.Automation.Interpreter
}
}
// Valdiate that we aren't jumping into a catch or an expression
// Validate that we aren't jumping into a catch or an expression
for (LabelScopeInfo j = def; j != common; j = j.Parent)
{
if (!j.CanJumpInto)

View file

@ -177,7 +177,7 @@ namespace System.Management.Automation.Interpreter
}
/// <summary>
/// The re-throw instrcution will throw this exception
/// The re-throw instruction will throw this exception
/// </summary>
internal sealed class RethrowException : SystemException
{
@ -282,7 +282,7 @@ namespace System.Management.Automation.Interpreter
private readonly Stack<ParameterExpression> _exceptionForRethrowStack = new Stack<ParameterExpression>();
// Set to true to force compiliation of this lambda.
// Set to true to force compilation of this lambda.
// This disables the interpreter for this lambda. We still need to
// walk it, however, to resolve variables closed over from the parent
// lambdas (because they may be interpreted).
@ -1249,7 +1249,7 @@ namespace System.Management.Automation.Interpreter
return true;
case ExpressionType.Switch:
PushLabelBlock(LabelScopeKind.Switch);
// Define labels inside of the switch cases so theyare in
// Define labels inside of the switch cases so they are in
// scope for the whole switch. This allows "goto case" and
// "goto default" to be considered as local jumps.
var @switch = (SwitchExpression)node;

View file

@ -245,7 +245,7 @@ namespace System.Management.Automation.Interpreter
#region MergedRuntimeVariables
/// <summary>
/// Provides a list of variables, supporing read/write of the values
/// Provides a list of variables, supporting read/write of the values
/// </summary>
private sealed class MergedRuntimeVariables : IRuntimeVariables
{