diff --git a/src/Microsoft.Management.UI.Internal/ManagementList/Common/ReadOnlyObservableAsyncCollection.cs b/src/Microsoft.Management.UI.Internal/ManagementList/Common/ReadOnlyObservableAsyncCollection.cs
index 7734bc4903..99f08931aa 100644
--- a/src/Microsoft.Management.UI.Internal/ManagementList/Common/ReadOnlyObservableAsyncCollection.cs
+++ b/src/Microsoft.Management.UI.Internal/ManagementList/Common/ReadOnlyObservableAsyncCollection.cs
@@ -44,7 +44,7 @@ namespace Microsoft.Management.UI.Internal
/// Occurs when the collection changes, either by adding or removing an item.
///
///
- /// see
+ /// see
///
public event NotifyCollectionChangedEventHandler CollectionChanged;
@@ -52,7 +52,7 @@ namespace Microsoft.Management.UI.Internal
/// Occurs when a property changes.
///
///
- /// see
+ /// see
///
public event PropertyChangedEventHandler PropertyChanged;
#endregion Events
diff --git a/src/Microsoft.Management.UI.Internal/ManagementList/Common/ScalableImage.cs b/src/Microsoft.Management.UI.Internal/ManagementList/Common/ScalableImage.cs
index b994bb1a29..ea5f91adc8 100644
--- a/src/Microsoft.Management.UI.Internal/ManagementList/Common/ScalableImage.cs
+++ b/src/Microsoft.Management.UI.Internal/ManagementList/Common/ScalableImage.cs
@@ -75,7 +75,7 @@ namespace Microsoft.Management.UI.Internal
}
///
- /// Override of .
+ /// Override of .
/// Make this control to respect the ClipToBounds attribute value.
///
/// An instance of used for calculating an additional clip.
diff --git a/src/Microsoft.Management.UI.Internal/ManagementList/ManagementList/Innerlist.cs b/src/Microsoft.Management.UI.Internal/ManagementList/ManagementList/Innerlist.cs
index a970a5290e..aa945a1d90 100644
--- a/src/Microsoft.Management.UI.Internal/ManagementList/ManagementList/Innerlist.cs
+++ b/src/Microsoft.Management.UI.Internal/ManagementList/ManagementList/Innerlist.cs
@@ -93,7 +93,7 @@ namespace Microsoft.Management.UI.Internal
///
/// Gets ItemsSource instead.
- /// Does not support adding to Items.
+ /// Does not support adding to Items.
///
[Browsable(false)]
public new ItemCollection Items
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/MatchString.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/MatchString.cs
index 9b9fe1aff1..a149c1b10e 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/MatchString.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/MatchString.cs
@@ -127,11 +127,11 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets the base name of the file containing the matching line.
+ ///
///
/// It will be the string "InputStream" if the object came from the input stream.
/// This is a readonly property calculated from the path .
///
- ///
/// The file name.
public string Filename
{
@@ -150,10 +150,10 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets or sets the full path of the file containing the matching line.
+ ///
///
/// It will be "InputStream" if the object came from the input stream.
///
- ///
/// The path name.
public string Path
{
@@ -182,11 +182,11 @@ namespace Microsoft.PowerShell.Commands
///
/// Returns the path of the matching file truncated relative to the parameter.
+ ///
///
/// For example, if the matching path was c:\foo\bar\baz.c and the directory argument was c:\foo
/// the routine would return bar\baz.c .
///
- ///
/// The directory base the truncation on.
/// The relative path that was produced.
public string RelativePath(string directory)
@@ -232,12 +232,12 @@ namespace Microsoft.PowerShell.Commands
///
/// Returns the string representation of this object. The format
/// depends on whether a path has been set for this object or not.
+ ///
///
/// If the path component is set, as would be the case when matching
/// in a file, ToString() would return the path, line number and line text.
/// If path is not set, then just the line text is presented.
///
- ///
/// The string representation of the match object.
public override string ToString()
{
diff --git a/src/System.Management.Automation/engine/Attributes.cs b/src/System.Management.Automation/engine/Attributes.cs
index 3e4d848faa..9e698c0517 100644
--- a/src/System.Management.Automation/engine/Attributes.cs
+++ b/src/System.Management.Automation/engine/Attributes.cs
@@ -1356,11 +1356,11 @@ namespace System.Management.Automation
/// Gets or sets the custom error message pattern that is displayed to the user.
/// The text representation of the object being validated and the validating regex is passed as
/// the first and second formatting parameters to the ErrorMessage formatting pattern.
- ///
+ ///
///
/// [ValidatePattern("\s+", ErrorMessage="The text '{0}' did not pass validation of regex '{1}'")]
///
- ///
+ ///
///
public string ErrorMessage { get; set; }
@@ -1422,11 +1422,11 @@ namespace System.Management.Automation
/// Gets or sets the custom error message that is displayed to the user.
/// The item being validated and the validating scriptblock is passed as the first and second
/// formatting argument.
- ///
+ ///
///
/// [ValidateScript("$_ % 2", ErrorMessage = "The item '{0}' did not pass validation of script '{1}'")]
///
- ///
+ ///
///
public string ErrorMessage { get; set; }
@@ -1687,11 +1687,11 @@ namespace System.Management.Automation
/// Gets or sets the custom error message that is displayed to the user.
/// The item being validated and a text representation of the validation set is passed as the
/// first and second formatting argument to the formatting pattern.
- ///
+ ///
///
/// [ValidateSet("A","B","C", ErrorMessage="The item '{0}' is not part of the set '{1}'.")
///
- ///
+ ///
///
public string ErrorMessage { get; set; }
diff --git a/src/System.Management.Automation/engine/CommandInfo.cs b/src/System.Management.Automation/engine/CommandInfo.cs
index 6b90b1d164..eb5fbf70f3 100644
--- a/src/System.Management.Automation/engine/CommandInfo.cs
+++ b/src/System.Management.Automation/engine/CommandInfo.cs
@@ -24,26 +24,20 @@ namespace System.Management.Automation
{
///
/// Aliases create a name that refers to other command types.
- ///
- ///
/// Aliases are only persisted within the execution of a single engine.
- ///
+ ///
Alias = 0x0001,
///
/// Script functions that are defined by a script block.
- ///
- ///
/// Functions are only persisted within the execution of a single engine.
- ///
+ ///
Function = 0x0002,
///
/// Script filters that are defined by a script block.
- ///
- ///
/// Filters are only persisted within the execution of a single engine.
- ///
+ ///
Filter = 0x0004,
///
@@ -58,11 +52,9 @@ namespace System.Management.Automation
///
/// Any existing application (can be console or GUI).
- ///
- ///
/// An application can have any extension that can be executed either directly through CreateProcess
/// or indirectly through ShellExecute.
- ///
+ ///
Application = 0x0020,
///
@@ -77,11 +69,9 @@ namespace System.Management.Automation
///
/// All possible command types.
+ /// NOTE: a CommandInfo instance will never specify All as its CommandType
+ /// but All can be used when filtering the CommandTypes.
///
- ///
- /// Note, a CommandInfo instance will never specify
- /// All as its CommandType but All can be used when filtering the CommandTypes.
- ///
All = Alias | Function | Filter | Cmdlet | Script | ExternalScript | Application | Configuration,
}
diff --git a/src/System.Management.Automation/engine/ErrorPackage.cs b/src/System.Management.Automation/engine/ErrorPackage.cs
index 2bca96372a..8eeec50103 100644
--- a/src/System.Management.Automation/engine/ErrorPackage.cs
+++ b/src/System.Management.Automation/engine/ErrorPackage.cs
@@ -28,13 +28,15 @@ namespace System.Management.Automation
public enum ErrorCategory
{
///
+ ///
/// No error category is specified, or the error category is invalid.
- ///
- ///
+ ///
+ ///
/// Do not specify ErrorCategory.NotSpecified when creating an
/// .
/// Choose the best match from among the other values.
- ///
+ ///
+ ///
NotSpecified = 0,
///
@@ -132,14 +134,16 @@ namespace System.Management.Automation
WriteError = 23,
///
+ ///
/// A native command reported an error to its STDERR pipe.
- ///
- ///
+ ///
+ ///
/// The Engine uses this ErrorCategory when it executes a native
/// console applications and captures the errors reported by the
/// native application. Avoid using ErrorCategory.FromStdErr
/// in other circumstances.
- ///
+ ///
+ ///
FromStdErr = 24,
///
diff --git a/src/System.Management.Automation/engine/ProgressRecord.cs b/src/System.Management.Automation/engine/ProgressRecord.cs
index 7e45e022ab..4319d78f04 100644
--- a/src/System.Management.Automation/engine/ProgressRecord.cs
+++ b/src/System.Management.Automation/engine/ProgressRecord.cs
@@ -505,7 +505,7 @@ namespace System.Management.Automation
string activity = string.IsNullOrEmpty(Activity) ? " " : Activity;
PSObject progressAsPSObject = RemotingEncoder.CreateEmptyPSObject();
-
+
progressAsPSObject.Properties.Add(new PSNoteProperty(RemoteDataNameStrings.ProgressRecord_Activity, activity));
progressAsPSObject.Properties.Add(new PSNoteProperty(RemoteDataNameStrings.ProgressRecord_ActivityId, this.ActivityId));
progressAsPSObject.Properties.Add(new PSNoteProperty(RemoteDataNameStrings.ProgressRecord_StatusDescription, this.StatusDescription));
@@ -529,9 +529,10 @@ namespace System.Management.Automation
enum ProgressRecordType
{
///
+ ///
/// Operation just started or is not yet complete.
- ///
- ///
+ ///
+ ///
/// A cmdlet can call WriteProgress with ProgressRecordType.Processing
/// as many times as it wishes. However, at the end of the operation,
/// it should call once more with ProgressRecordType.Completed.
@@ -542,17 +543,20 @@ namespace System.Management.Automation
/// of the same Id, the host will update that display.
/// Finally, when the host receives a 'completed' record
/// for that activity, it will remove the progress indicator.
- ///
+ ///
+ ///
Processing,
///
+ ///
/// Operation is complete.
- ///
- ///
+ ///
+ ///
/// If a cmdlet uses WriteProgress, it should use
/// ProgressRecordType.Completed exactly once, in the last call
/// to WriteProgress.
- ///
+ ///
+ ///
Completed
}
}
diff --git a/src/System.Management.Automation/engine/cmdlet.cs b/src/System.Management.Automation/engine/cmdlet.cs
index 2f60c95ee4..b2b63d364b 100644
--- a/src/System.Management.Automation/engine/cmdlet.cs
+++ b/src/System.Management.Automation/engine/cmdlet.cs
@@ -1820,14 +1820,16 @@ namespace System.Management.Automation
None = 0x0,
///
+ ///
/// WhatIf behavior was requested.
- ///
- ///
+ ///
+ ///
/// In the host, WhatIf behavior can be requested explicitly
/// for one cmdlet instance using the -WhatIf commandline parameter,
/// or implicitly for all SupportsShouldProcess cmdlets with $WhatIfPreference.
/// Other hosts may have other ways to request WhatIf behavior.
- ///
+ ///
+ ///
WhatIf = 0x1,
}
}
diff --git a/src/System.Management.Automation/engine/hostifaces/ChoiceDescription.cs b/src/System.Management.Automation/engine/hostifaces/ChoiceDescription.cs
index 4c7c3e65b2..0cac1d02b6 100644
--- a/src/System.Management.Automation/engine/hostifaces/ChoiceDescription.cs
+++ b/src/System.Management.Automation/engine/hostifaces/ChoiceDescription.cs
@@ -6,7 +6,7 @@ using Dbg = System.Management.Automation.Diagnostics;
namespace System.Management.Automation.Host
{
///
- /// Provides a description of a choice for use by .
+ /// Provides a description of a choice for use by .
///
///
public sealed
@@ -84,7 +84,7 @@ namespace System.Management.Automation.Host
///
/// Note that the special character & (ampersand) may be embedded in the label string to identify the next character in the label
/// as a "hot key" (aka "keyboard accelerator") that the Console.PromptForChoice implementation may use to allow the user to
- /// quickly set input focus to this choice. The implementation of
+ /// quickly set input focus to this choice. The implementation of
/// is responsible for parsing the label string for this special character and rendering it accordingly.
///
/// For examples, a choice named "Yes to All" might have "Yes to &All" as it's label.
diff --git a/src/System.Management.Automation/engine/hostifaces/Connection.cs b/src/System.Management.Automation/engine/hostifaces/Connection.cs
index 5f0f8e036d..3f5911d1c6 100644
--- a/src/System.Management.Automation/engine/hostifaces/Connection.cs
+++ b/src/System.Management.Automation/engine/hostifaces/Connection.cs
@@ -95,7 +95,7 @@ namespace System.Management.Automation.Runspaces
/// The that contains contextual information
/// about the source or destination.
///
- [Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId = "SYSLIB0051")]
+ [Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId = "SYSLIB0051")]
protected InvalidRunspaceStateException(SerializationInfo info, StreamingContext context)
{
throw new NotSupportedException();
@@ -219,12 +219,9 @@ namespace System.Management.Automation.Runspaces
ReuseThread = 2,
///
- /// Doesn't create a new thread; the execution occurs on the
- /// thread that calls Invoke.
+ /// Doesn't create a new thread; the execution occurs on the thread
+ /// that calls Invoke. This option is not valid for asynchronous calls.
///
- ///
- /// This option is not valid for asynchronous calls
- ///
UseCurrentThread = 3
}
diff --git a/src/System.Management.Automation/engine/hostifaces/FieldDescription.cs b/src/System.Management.Automation/engine/hostifaces/FieldDescription.cs
index b8a0793a5f..541b1607df 100644
--- a/src/System.Management.Automation/engine/hostifaces/FieldDescription.cs
+++ b/src/System.Management.Automation/engine/hostifaces/FieldDescription.cs
@@ -165,7 +165,7 @@ namespace System.Management.Automation.Host
///
/// A short, human-presentable message to describe and identify the field. If supplied, a typical implementation of
- /// will use this value instead of
+ /// will use this value instead of
/// the field name to identify the field to the user.
///
///
@@ -174,9 +174,9 @@ namespace System.Management.Automation.Host
///
/// Note that the special character & (ampersand) may be embedded in the label string to identify the next
/// character in the label as a "hot key" (aka "keyboard accelerator") that the
- /// implementation may use
+ /// implementation may use
/// to allow the user to quickly set input focus to this field. The implementation of
- /// is responsible for parsing
+ /// is responsible for parsing
/// the label string for this special character and rendering it accordingly.
///
/// For example, a field named "SSN" might have "&Social Security Number" as it's label.
@@ -256,12 +256,12 @@ namespace System.Management.Automation.Host
}
///
- /// Gets and sets the default value, if any, for the implementation of
+ /// Gets and sets the default value, if any, for the implementation of
/// to pre-populate its UI with. This is a PSObject instance so that the value can be serialized, converted,
/// manipulated like any pipeline object.
///
///
- /// It is up to the implementer of to decide if it
+ /// It is up to the implementer of to decide if it
/// can make use of the object in its presentation of the fields prompt.
///
///
@@ -283,7 +283,7 @@ namespace System.Management.Automation.Host
}
///
- /// Gets the Attribute classes that apply to the field. In the case that
+ /// Gets the Attribute classes that apply to the field. In the case that
/// is being called from the engine, this will contain the set of prompting attributes that are attached to a
/// cmdlet parameter declaration.
///
diff --git a/src/System.Management.Automation/engine/hostifaces/MshHostRawUserInterface.cs b/src/System.Management.Automation/engine/hostifaces/MshHostRawUserInterface.cs
index c7e1b2ce84..201caf3c82 100644
--- a/src/System.Management.Automation/engine/hostifaces/MshHostRawUserInterface.cs
+++ b/src/System.Management.Automation/engine/hostifaces/MshHostRawUserInterface.cs
@@ -1784,7 +1784,7 @@ namespace System.Management.Automation.Host
///
/// Creates a 2D array of BufferCells by examining .Character.
- ///
+ ///
///
///
/// The number of columns of the resulting array
diff --git a/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs b/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs
index ddc6fce782..29fc5fa1f7 100644
--- a/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs
+++ b/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs
@@ -112,10 +112,10 @@ namespace System.Management.Automation.Host
///
/// The default implementation writes a carriage return to the screen buffer.
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
public virtual void WriteLine()
{
@@ -170,10 +170,10 @@ namespace System.Management.Automation.Host
///
/// Writes a line to the "error display" of the host, as opposed to the "output display," which is
/// written to by the variants of
- ///
- ///
- /// and
- ///
+ ///
+ ///
+ /// and
+ ///
///
///
/// The characters to be written.
@@ -314,7 +314,7 @@ namespace System.Management.Automation.Host
return string.Empty;
}
- PSStyle psstyle = PSStyle.Instance;
+ PSStyle psstyle = PSStyle.Instance;
switch (formatStyle)
{
case FormatStyle.Reset:
diff --git a/src/System.Management.Automation/engine/lang/interface/PSToken.cs b/src/System.Management.Automation/engine/lang/interface/PSToken.cs
index 048de2faca..306a64a0b6 100644
--- a/src/System.Management.Automation/engine/lang/interface/PSToken.cs
+++ b/src/System.Management.Automation/engine/lang/interface/PSToken.cs
@@ -370,223 +370,275 @@ namespace System.Management.Automation
///
/// Unknown token.
///
- ///
- ///
Unknown,
///
+ ///
/// Command.
- ///
- ///
+ ///
+ ///
/// For example, 'get-process' in
///
- /// get-process -name foo
- ///
+ /// get-process -name foo
+ ///
+ ///
Command,
///
+ ///
/// Command Parameter.
- ///
- ///
+ ///
+ ///
/// For example, '-name' in
///
- /// get-process -name foo
- ///
+ /// get-process -name foo
+ ///
+ ///
CommandParameter,
///
+ ///
/// Command Argument.
- ///
- ///
+ ///
+ ///
/// For example, 'foo' in
///
- /// get-process -name foo
- ///
+ /// get-process -name foo
+ ///
+ ///
CommandArgument,
///
+ ///
/// Number.
- ///
- ///
+ ///
+ ///
/// For example, 12 in
///
- /// $a=12
- ///
+ /// $a=12
+ ///
+ ///
Number,
///
+ ///
/// String.
- ///
- ///
+ ///
+ ///
/// For example, "12" in
///
- /// $a="12"
- ///
+ /// $a="12"
+ ///
+ ///
String,
///
+ ///
/// Variable.
- ///
+ ///
+ ///
///
/// For example, $a in
///
- /// $a="12"
- ///
+ /// $a="12"
+ ///
+ ///
Variable,
///
+ ///
/// Property name or method name.
- ///
- ///
+ ///
+ ///
/// For example, Name in
///
- /// $a.Name
- ///
+ /// $a.Name
+ ///
+ ///
Member,
///
+ ///
/// Loop label.
- ///
- ///
+ ///
+ ///
/// For example, :loop in
///
+ ///
/// :loop
/// foreach($a in $b)
/// {
/// $a
/// }
- ///
+ ///
+ ///
LoopLabel,
///
+ ///
/// Attributes.
- ///
- ///
+ ///
+ ///
/// For example, Mandatory in
///
- /// param([Mandatory] $a)
- ///
+ /// param([Mandatory] $a)
+ ///
+ ///
Attribute,
///
+ ///
/// Types.
- ///
- ///
+ ///
+ ///
/// For example, [string] in
///
- /// $a = [string] 12
- ///
+ /// $a = [string] 12
+ ///
+ ///
Type,
///
+ ///
/// Operators.
- ///
- ///
+ ///
+ ///
/// For example, + in
///
- /// $a = 1 + 2
- ///
+ /// $a = 1 + 2
+ ///
+ ///
Operator,
///
+ ///
/// Group Starter.
- ///
- ///
+ ///
+ ///
/// For example, { in
///
+ ///
/// if ($a -gt 4)
/// {
/// $a++;
/// }
- ///
+ ///
+ ///
+ ///
GroupStart,
///
+ ///
/// Group Ender.
- ///
- ///
+ ///
+ ///
/// For example, } in
///
+ ///
/// if ($a -gt 4)
/// {
/// $a++;
/// }
- ///
+ ///
+ ///
+ ///
GroupEnd,
///
+ ///
/// Keyword.
- ///
- ///
+ ///
+ ///
/// For example, if in
///
+ ///
/// if ($a -gt 4)
/// {
/// $a++;
/// }
- ///
+ ///
+ ///
+ ///
Keyword,
///
+ ///
/// Comment.
- ///
- ///
+ ///
+ ///
/// For example, #here in
///
+ ///
/// #here
/// if ($a -gt 4)
/// {
/// $a++;
/// }
- ///
+ ///
+ ///
+ ///
Comment,
///
+ ///
/// Statement separator. This is ';'
- ///
- ///
+ ///
+ ///
/// For example, ; in
///
+ ///
/// #here
/// if ($a -gt 4)
/// {
/// $a++;
/// }
- ///
+ ///
+ ///
+ ///
StatementSeparator,
///
+ ///
/// New line. This is '\n'
- ///
- ///
+ ///
+ ///
/// For example, \n in
///
+ ///
/// #here
/// if ($a -gt 4)
/// {
/// $a++;
/// }
- ///
+ ///
+ ///
+ ///
NewLine,
///
+ ///
/// Line continuation.
- ///
- ///
+ ///
+ ///
/// For example, ` in
///
+ ///
/// get-command -name `
/// foo
- ///
+ ///
+ ///
+ ///
LineContinuation,
///
+ ///
/// Position token.
- ///
- ///
- /// Position token are bogus tokens generated for identifying a location
+ ///
+ ///
+ /// Position tokens are bogus tokens generated for identifying a location
/// in the script.
- ///
+ ///
+ ///
Position
}
}
diff --git a/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs b/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs
index 91c0c6247e..675e53394c 100644
--- a/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs
+++ b/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs
@@ -6,7 +6,7 @@ using System.Diagnostics.CodeAnalysis;
namespace System.Management.Automation.Language
{
///
- /// Each Visit* method in returns one of these values to control
+ /// Each Visit* method in returns one of these values to control
/// how visiting nodes in the AST should proceed.
///
public enum AstVisitAction
diff --git a/src/System.Management.Automation/engine/parser/ast.cs b/src/System.Management.Automation/engine/parser/ast.cs
index a4138a502e..5222f2f53b 100644
--- a/src/System.Management.Automation/engine/parser/ast.cs
+++ b/src/System.Management.Automation/engine/parser/ast.cs
@@ -6038,8 +6038,8 @@ namespace System.Management.Automation.Language
/// Returns the name of the command invoked by this ast.
/// This command name may not be known statically, in which case null is returned.
///
- /// For example, if the command name is in a variable: & $foo, then the parser cannot know which command is executed.
- /// Similarly, if the command is being invoked in a module: & (gmo SomeModule) Bar, then the parser does not know the
+ /// For example, if the command name is in a variable: & $foo, then the parser cannot know which command is executed.
+ /// Similarly, if the command is being invoked in a module: & (gmo SomeModule) Bar, then the parser does not know the
/// command name is Bar because the parser can't determine that the expression (gmo SomeModule) returns a module instead
/// of a string.
///
diff --git a/src/System.Management.Automation/engine/parser/token.cs b/src/System.Management.Automation/engine/parser/token.cs
index 2d71602fca..3cee7580ff 100644
--- a/src/System.Management.Automation/engine/parser/token.cs
+++ b/src/System.Management.Automation/engine/parser/token.cs
@@ -1180,7 +1180,7 @@ namespace System.Management.Automation.Language
#endif
///
- /// Return all the flags for a given [TokenKind].
+ /// Return all the flags for a given .
///
public static TokenFlags GetTraits(this TokenKind kind)
{
@@ -1188,7 +1188,7 @@ namespace System.Management.Automation.Language
}
///
- /// Return true if the [TokenKind] has the given trait.
+ /// Return true if the has the given trait.
///
public static bool HasTrait(this TokenKind kind, TokenFlags flag)
{
@@ -1202,7 +1202,7 @@ namespace System.Management.Automation.Language
}
///
- /// Return the text for a given [TokenKind].
+ /// Return the text for a given .
///
public static string Text(this TokenKind kind)
{
diff --git a/src/System.Management.Automation/namespaces/ProviderDeclarationAttribute.cs b/src/System.Management.Automation/namespaces/ProviderDeclarationAttribute.cs
index 0601adce6b..cd38b92c17 100644
--- a/src/System.Management.Automation/namespaces/ProviderDeclarationAttribute.cs
+++ b/src/System.Management.Automation/namespaces/ProviderDeclarationAttribute.cs
@@ -82,50 +82,58 @@ namespace System.Management.Automation.Provider
None = 0x0,
///
+ ///
/// The provider does the inclusion filtering for those commands that take an Include
/// parameter. The PowerShell engine should not try to do the filtering on behalf of this
/// provider.
- ///
- ///
- /// Note, the provider should make every effort to filter in a way that is consistent
+ ///
+ ///
+ /// The implementer of the provider should make every effort to filter in a way that is consistent
/// with the PowerShell engine. This option is allowed because in many cases the provider
/// can be much more efficient at filtering.
- ///
+ ///
+ ///
Include = 0x1,
///
+ ///
/// The provider does the exclusion filtering for those commands that take an Exclude
/// parameter. The PowerShell engine should not try to do the filtering on behalf of this
/// provider.
- ///
- ///
- /// Note, the provider should make every effort to filter in a way that is consistent
+ ///
+ ///
+ /// The implementer of the provider should make every effort to filter in a way that is consistent
/// with the PowerShell engine. This option is allowed because in many cases the provider
/// can be much more efficient at filtering.
- ///
+ ///
+ ///
Exclude = 0x2,
///
+ ///
/// The provider can take a provider specific filter string.
- ///
- ///
- /// When this attribute is specified a provider specific filter can be passed from
+ ///
+ ///
+ /// For implementers of providers using this attribute, a provider specific filter can be passed from
/// the Core Commands to the provider. This filter string is not interpreted in any
/// way by the PowerShell engine.
- ///
+ ///
+ ///
Filter = 0x4,
///
+ ///
/// The provider does the wildcard matching for those commands that allow for it. The PowerShell
/// engine should not try to do the wildcard matching on behalf of the provider when this
/// flag is set.
- ///
- ///
- /// Note, the provider should make every effort to do the wildcard matching in a way that is consistent
+ ///
+ ///
+ /// The implementer of the provider should make every effort to do the wildcard matching in a way that is consistent
/// with the PowerShell engine. This option is allowed because in many cases wildcard matching
/// cannot occur via the path name or because the provider can do the matching in a much more
/// efficient manner.
- ///
+ ///
+ ///
ExpandWildcards = 0x8,
///
diff --git a/src/System.Management.Automation/utils/StructuredTraceSource.cs b/src/System.Management.Automation/utils/StructuredTraceSource.cs
index be5f10da08..0122e9e26d 100644
--- a/src/System.Management.Automation/utils/StructuredTraceSource.cs
+++ b/src/System.Management.Automation/utils/StructuredTraceSource.cs
@@ -144,13 +144,10 @@ namespace System.Management.Automation
Assert = 0x00004000,
///
- /// A combination of flags that trace the execution flow will
- /// be traced.
- ///
- ///
+ /// A combination of flags that trace the execution flow.
/// The methods associated with the flags; Constructor, Dispose,
- /// Finalizer, Method, Delegates, and Events will be enabled
- ///
+ /// Finalizer, Method, Delegates, and Events will be enabled.
+ ///
ExecutionFlow =
Constructor |
Dispose |
@@ -161,13 +158,10 @@ namespace System.Management.Automation
Scope,
///
- /// A combination of flags that trace the data will be traced
- /// be traced.
- ///
- ///
+ /// A combination of flags that trace the data.
/// The methods associated with the flags; Constructor, Dispose,
- /// Finalizer, Property, and WriteLine will be enabled
- ///
+ /// Finalizer, Property, and WriteLine will be enabled.
+ ///
Data =
Constructor |
Dispose |
@@ -178,22 +172,17 @@ namespace System.Management.Automation
///
/// A combination of flags that trace the errors.
- ///
- ///
/// The methods associated with the flags; Error,
- /// and Exception will be enabled
- ///
+ /// and Exception will be enabled.
+ ///
Errors =
Error |
Exception,
///
- /// All combination of trace flags will be set
- /// be traced.
- ///
- ///
+ /// All combination of trace flags will be set.
/// All methods for tracing will be enabled.
- ///
+ ///
All =
Constructor |
Dispose |