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

This commit is contained in:
Josh Soref 2016-08-28 05:18:25 +00:00
parent 8d58abcc5f
commit 1e1a69a291
4 changed files with 11 additions and 11 deletions

View file

@ -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.
/// </exception>
public static Collection<PSToken> Tokenize(string script, out Collection<PSParseError> 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.
/// </exception>
public static Collection<PSToken> Tokenize(object[] script, out Collection<PSParseError> errors)

View file

@ -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,

View file

@ -73,7 +73,7 @@ namespace System.Management.Automation
return (c == '{' || c == '}');
}
/// <summary>
/// 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.
/// </summary>
/// <param name="c">The character to map</param>
@ -270,7 +270,7 @@ namespace System.Management.Automation
public enum SplitOptions
{
/// <summary>
/// Use simple string comparison when evaluting the delimiter.
/// Use simple string comparison when evaluating the delimiter.
/// Cannot be used with RegexMatch.
/// </summary>
SimpleMatch = 0x01,
@ -280,7 +280,7 @@ namespace System.Management.Automation
/// </summary>
RegexMatch = 0x02,
/// <summary>
/// CultureInvariant: Ignores cultural differences in language when evaluting the delimiter.
/// CultureInvariant: Ignores cultural differences in language when evaluating the delimiter.
/// Valid only with RegexMatch.
/// </summary>
CultureInvariant = 0x04,
@ -1330,7 +1330,7 @@ namespace System.Management.Automation
/// <summary>
/// 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...
/// </summary>
/// <param name="errorPosition">The position to use for error reporting.</param>
/// <param name="target">The object to call the method on. It shouldn't be an msh object</param>
@ -1338,7 +1338,7 @@ namespace System.Management.Automation
/// <param name="invocationConstraints">Invocation constraints</param>
/// <param name="paramArray">The arguments to pass to the method.</param>
/// <param name="callStatic">Set to true if you want to call a static method.</param>
/// <param name="valueToSet">If not automation null, then this must be a settable propery</param>
/// <param name="valueToSet">If not automation null, then this must be a settable property</param>
/// <exception cref="RuntimeException">Wraps the exception returned from the method call</exception>
/// <exception cref="SessionStateOverflowException">The maximum scope depth would be exceeded</exception>
/// <exception cref="FlowControlException">Internal exception from a flow control statement</exception>

View file

@ -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
/// <summary>
/// Recommended constructor for the class
/// </summary>
/// <param name="errorId">String that uniquelly identifies each thrown Exception</param>
/// <param name="errorId">String that uniquely identifies each thrown Exception</param>
/// <param name="innerException">The inner exception</param>
/// <param name="message">The error message</param>
/// <param name="arguments">Arguments to the resource string</param>