Skip to content

Commit 85d3111

Browse files
committed
Seal "LeafPattern" subclasses
1 parent c3391e1 commit 85d3111

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/DocoptNet/Internals/Argument.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace DocoptNet.Internals
55
{
66
using System.Globalization;
77

8-
class Argument: LeafPattern
8+
sealed class Argument : LeafPattern
99
{
1010
public Argument(string name) : base(name, ArgValue.None) { }
1111

src/DocoptNet/Internals/Command.cs

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

44
namespace DocoptNet.Internals
55
{
6-
class Command : LeafPattern
6+
sealed class Command : LeafPattern
77
{
88
public Command(string name, bool value = false) :
99
base(name, value ? ArgValue.True : ArgValue.False) { }

src/DocoptNet/Internals/Option.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace DocoptNet.Internals
66
using System;
77
using System.Text.RegularExpressions;
88

9-
partial class Option : LeafPattern
9+
sealed partial class Option : LeafPattern
1010
{
1111
public string ShortName { get; private set; }
1212
public string LongName { get; private set; }

0 commit comments

Comments
 (0)