diff --git a/src/System.Management.Automation/engine/interpreter/BranchLabel.cs b/src/System.Management.Automation/engine/interpreter/BranchLabel.cs index c047d68fc..ab04324bd 100644 --- a/src/System.Management.Automation/engine/interpreter/BranchLabel.cs +++ b/src/System.Management.Automation/engine/interpreter/BranchLabel.cs @@ -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 _forwardBranchFixups; diff --git a/src/System.Management.Automation/engine/interpreter/CallInstruction.Generated.cs b/src/System.Management.Automation/engine/interpreter/CallInstruction.Generated.cs index bee10b2ff..760083581 100644 --- a/src/System.Management.Automation/engine/interpreter/CallInstruction.Generated.cs +++ b/src/System.Management.Automation/engine/interpreter/CallInstruction.Generated.cs @@ -80,7 +80,7 @@ namespace System.Management.Automation.Interpreter { /// /// 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 diff --git a/src/System.Management.Automation/engine/interpreter/ControlFlowInstructions.cs b/src/System.Management.Automation/engine/interpreter/ControlFlowInstructions.cs index 9d0e5fa32..02f327ade 100644 --- a/src/System.Management.Automation/engine/interpreter/ControlFlowInstructions.cs +++ b/src/System.Management.Automation/engine/interpreter/ControlFlowInstructions.cs @@ -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); diff --git a/src/System.Management.Automation/engine/interpreter/InstructionFactory.cs b/src/System.Management.Automation/engine/interpreter/InstructionFactory.cs index 1b50964a0..c3e35afc9 100644 --- a/src/System.Management.Automation/engine/interpreter/InstructionFactory.cs +++ b/src/System.Management.Automation/engine/interpreter/InstructionFactory.cs @@ -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 diff --git a/src/System.Management.Automation/engine/interpreter/LabelInfo.cs b/src/System.Management.Automation/engine/interpreter/LabelInfo.cs index 85b03980a..b3221b462 100644 --- a/src/System.Management.Automation/engine/interpreter/LabelInfo.cs +++ b/src/System.Management.Automation/engine/interpreter/LabelInfo.cs @@ -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) diff --git a/src/System.Management.Automation/engine/interpreter/LightCompiler.cs b/src/System.Management.Automation/engine/interpreter/LightCompiler.cs index b06dd5a87..77e2dc814 100644 --- a/src/System.Management.Automation/engine/interpreter/LightCompiler.cs +++ b/src/System.Management.Automation/engine/interpreter/LightCompiler.cs @@ -177,7 +177,7 @@ namespace System.Management.Automation.Interpreter } /// - /// The re-throw instrcution will throw this exception + /// The re-throw instruction will throw this exception /// internal sealed class RethrowException : SystemException { @@ -282,7 +282,7 @@ namespace System.Management.Automation.Interpreter private readonly Stack _exceptionForRethrowStack = new Stack(); - // 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; diff --git a/src/System.Management.Automation/engine/interpreter/LightLambdaClosureVisitor.cs b/src/System.Management.Automation/engine/interpreter/LightLambdaClosureVisitor.cs index 69969208f..81955fc8d 100644 --- a/src/System.Management.Automation/engine/interpreter/LightLambdaClosureVisitor.cs +++ b/src/System.Management.Automation/engine/interpreter/LightLambdaClosureVisitor.cs @@ -245,7 +245,7 @@ namespace System.Management.Automation.Interpreter #region MergedRuntimeVariables /// - /// Provides a list of variables, supporing read/write of the values + /// Provides a list of variables, supporting read/write of the values /// private sealed class MergedRuntimeVariables : IRuntimeVariables {