From 1e1a69a2912643c4a6c4a1347185686ff3180fe0 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 28 Aug 2016 05:18:25 +0000 Subject: [PATCH] spelling: comments in src/System.Management.Automation/engine/lang --- .../engine/lang/interface/PSParser.cs | 6 +++--- .../engine/lang/interface/PSToken.cs | 2 +- .../engine/lang/parserutils.cs | 10 +++++----- .../engine/lang/scriptblock.cs | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/System.Management.Automation/engine/lang/interface/PSParser.cs b/src/System.Management.Automation/engine/lang/interface/PSParser.cs index 8aea64e21..9557d97c8 100644 --- a/src/System.Management.Automation/engine/lang/interface/PSParser.cs +++ b/src/System.Management.Automation/engine/lang/interface/PSParser.cs @@ -55,7 +55,7 @@ namespace System.Management.Automation // 3. Parsing Logic // // Script parsing is done through instances of PSParser object. Each PSParser object - // wraps an interal Parser object. It is PSParser object's responsibility to + // wraps an internal Parser object. It is PSParser object's responsibility to // a. setup local runspace and retrieve internal Parser object from it. // b. call internal parser for actual parsing // c. translate parsing result from internal Token and RuntimeException type @@ -144,7 +144,7 @@ namespace System.Management.Automation /// collection, there are some scenarios where resource limits will result /// in an exception being thrown by this API. This allows the caller to /// distinguish between a successful parse with errors and a failed parse. - /// All exceptions thrown will be derived from System.Mnagement.Automation.RuntimeException + /// All exceptions thrown will be derived from System.Management.Automation.RuntimeException /// but may contain an inner exception that describes the real issue. /// public static Collection Tokenize(string script, out Collection errors) @@ -171,7 +171,7 @@ namespace System.Management.Automation /// collection, there are some scenarios where resource limits will result /// in an exception being thrown by this API. This allows the caller to /// distinguish between a successful parse with errors and a failed parse. - /// All exceptions thrown will be derived from System.Mnagement.Automation.RuntimeException + /// All exceptions thrown will be derived from System.Management.Automation.RuntimeException /// but may contain an inner exception that describes the real issue. /// public static Collection Tokenize(object[] script, out Collection errors) diff --git a/src/System.Management.Automation/engine/lang/interface/PSToken.cs b/src/System.Management.Automation/engine/lang/interface/PSToken.cs index ae2b9e744..4eab32ff6 100644 --- a/src/System.Management.Automation/engine/lang/interface/PSToken.cs +++ b/src/System.Management.Automation/engine/lang/interface/PSToken.cs @@ -168,7 +168,7 @@ namespace System.Management.Automation /* Equals */ PSTokenType.Operator, /* PlusEquals */ PSTokenType.Operator, /* MinusEquals */ PSTokenType.Operator, - /* MultipyEquals */ PSTokenType.Operator, + /* MultiplyEquals */ PSTokenType.Operator, /* DivideEquals */ PSTokenType.Operator, /* RemainderEquals */ PSTokenType.Operator, /* Redirection */ PSTokenType.Operator, diff --git a/src/System.Management.Automation/engine/lang/parserutils.cs b/src/System.Management.Automation/engine/lang/parserutils.cs index 5860b89aa..ec8f6edda 100644 --- a/src/System.Management.Automation/engine/lang/parserutils.cs +++ b/src/System.Management.Automation/engine/lang/parserutils.cs @@ -73,7 +73,7 @@ namespace System.Management.Automation return (c == '{' || c == '}'); } /// - /// Canonicalize the quote charater - map all of the aliases for " or ' + /// Canonicalize the quote character - map all of the aliases for " or ' /// into their ascii equivalent. /// /// The character to map @@ -270,7 +270,7 @@ namespace System.Management.Automation public enum SplitOptions { /// - /// Use simple string comparison when evaluting the delimiter. + /// Use simple string comparison when evaluating the delimiter. /// Cannot be used with RegexMatch. /// SimpleMatch = 0x01, @@ -280,7 +280,7 @@ namespace System.Management.Automation /// RegexMatch = 0x02, /// - /// CultureInvariant: Ignores cultural differences in language when evaluting the delimiter. + /// CultureInvariant: Ignores cultural differences in language when evaluating the delimiter. /// Valid only with RegexMatch. /// CultureInvariant = 0x04, @@ -1330,7 +1330,7 @@ namespace System.Management.Automation /// /// Launch a method on an object. This will handle .NET native methods, COM - /// methods and ScriptBlock notes. Native methods currently take precidence over notes... + /// methods and ScriptBlock notes. Native methods currently take precedence over notes... /// /// The position to use for error reporting. /// The object to call the method on. It shouldn't be an msh object @@ -1338,7 +1338,7 @@ namespace System.Management.Automation /// Invocation constraints /// The arguments to pass to the method. /// Set to true if you want to call a static method. - /// If not automation null, then this must be a settable propery + /// If not automation null, then this must be a settable property /// Wraps the exception returned from the method call /// The maximum scope depth would be exceeded /// Internal exception from a flow control statement diff --git a/src/System.Management.Automation/engine/lang/scriptblock.cs b/src/System.Management.Automation/engine/lang/scriptblock.cs index d6544b318..1d7695d85 100644 --- a/src/System.Management.Automation/engine/lang/scriptblock.cs +++ b/src/System.Management.Automation/engine/lang/scriptblock.cs @@ -769,7 +769,7 @@ namespace System.Management.Automation internal object InvokeAsDelegateHelper(object dollarUnder, object dollarThis, object[] args) { - // Retrive context and current runspace to ensure that we throw exception, if this is non-default runspace. + // Retrieve context and current runspace to ensure that we throw exception, if this is non-default runspace. ExecutionContext context = GetContextFromTLS(); RunspaceBase runspace = (RunspaceBase)context.CurrentRunspace; @@ -1295,7 +1295,7 @@ namespace System.Management.Automation /// /// Recommended constructor for the class /// - /// String that uniquelly identifies each thrown Exception + /// String that uniquely identifies each thrown Exception /// The inner exception /// The error message /// Arguments to the resource string