Skip to content

Commit 4c2d6dc

Browse files
authored
1 parent 88d38b8 commit 4c2d6dc

28 files changed

Lines changed: 49 additions & 49 deletions

src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/TerminatingErrorTracker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace Microsoft.PowerShell.Cmdletization.Cim
1919
/// <summary>
2020
/// Tracks (per-session) terminating errors in a given cmdlet invocation.
2121
/// </summary>
22-
internal class TerminatingErrorTracker
22+
internal sealed class TerminatingErrorTracker
2323
{
2424
#region Getting tracker for a given cmdlet invocation
2525

src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimOperationOptionsHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
namespace Microsoft.PowerShell.Cmdletization.Cim
1616
{
17-
internal class CimCustomOptionsDictionary
17+
internal sealed class CimCustomOptionsDictionary
1818
{
1919
private readonly IDictionary<string, object> _dict;
2020
private readonly object _dictModificationLock = new();

src/System.Management.Automation/CoreCLR/CorePsAssemblyLoadContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace System.Management.Automation
1515
/// <summary>
1616
/// The powershell custom AssemblyLoadContext implementation.
1717
/// </summary>
18-
internal partial class PowerShellAssemblyLoadContext
18+
internal sealed partial class PowerShellAssemblyLoadContext
1919
{
2020
#region Resource_Strings
2121

src/System.Management.Automation/FormatAndOutput/common/FormatXMLWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Microsoft.PowerShell.Commands
1313
/// <summary>
1414
/// Helper class for writing formatting directives to XML.
1515
/// </summary>
16-
internal class FormatXmlWriter
16+
internal sealed class FormatXmlWriter
1717
{
1818
private XmlWriter _writer;
1919
private bool _exportScriptBlock;

src/System.Management.Automation/engine/CommandInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ public PSMemberNameAndType(string name, PSTypeName typeName, object value = null
928928
/// but can be used where a real type might not be available, in which case the name of the type can be used.
929929
/// The type encodes the members of dynamic objects in the type name.
930930
/// </summary>
931-
internal class PSSyntheticTypeName : PSTypeName
931+
internal sealed class PSSyntheticTypeName : PSTypeName
932932
{
933933
internal static PSSyntheticTypeName Create(string typename, IList<PSMemberNameAndType> membersTypes) => Create(new PSTypeName(typename), membersTypes);
934934

src/System.Management.Automation/engine/Modules/AnalysisCache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ private static bool GetModuleEntryFromCache(string modulePath, out DateTime last
642642
}
643643
}
644644

645-
internal class AnalysisCacheData
645+
internal sealed class AnalysisCacheData
646646
{
647647
private static byte[] GetHeader()
648648
{

src/System.Management.Automation/engine/MshSnapinQualifiedName.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace System.Management.Automation
1010
/// <summary>
1111
/// A class representing a name that is qualified by the PSSnapin name.
1212
/// </summary>
13-
internal class PSSnapinQualifiedName
13+
internal sealed class PSSnapinQualifiedName
1414
{
1515
private PSSnapinQualifiedName(string[] splitName)
1616
{

src/System.Management.Automation/engine/interpreter/PowerShellInstructions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
namespace System.Management.Automation.Interpreter
1717
{
18-
internal class UpdatePositionInstruction : Instruction
18+
internal sealed class UpdatePositionInstruction : Instruction
1919
{
2020
private readonly int _sequencePoint;
2121
private readonly bool _checkBreakpoints;

src/System.Management.Automation/engine/parser/SafeValues.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ public object VisitParenExpression(ParenExpressionAst parenExpressionAst)
356356
* except in the case of handling the unary operator
357357
* ExecutionContext is provided to ensure we can resolve variables
358358
*/
359-
internal class GetSafeValueVisitor : ICustomAstVisitor2
359+
internal sealed class GetSafeValueVisitor : ICustomAstVisitor2
360360
{
361361
internal enum SafeValueContext
362362
{

src/System.Management.Automation/engine/parser/SemanticChecks.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace System.Management.Automation.Language
1919
{
20-
internal class SemanticChecks : AstVisitor2, IAstPostVisitHandler
20+
internal sealed class SemanticChecks : AstVisitor2, IAstPostVisitHandler
2121
{
2222
private readonly Parser _parser;
2323

0 commit comments

Comments
 (0)