Skip to content

Commit 51bb7bc

Browse files
committed
修改
1 parent bbc546a commit 51bb7bc

33 files changed

+915
-915
lines changed

csharp/ToolGood.Algorithm2/AlgorithmEngineHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace ToolGood.Algorithm
88
/// <summary>
99
/// 算法引擎助手
1010
/// </summary>
11-
public class AlgorithmEngineHelper
11+
public static class AlgorithmEngineHelper
1212
{
1313
private static HashSet<string> _lexerSet;
1414

csharp/ToolGood.Algorithm2/ConditionCache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace ToolGood.Algorithm
99
/// <summary>
1010
/// 条件缓存
1111
/// </summary>
12-
public class ConditionCache
12+
public sealed class ConditionCache
1313
{
1414
private Dictionary<string, List<ConditionCacheInfo>> conditionCaches = new Dictionary<string, List<ConditionCacheInfo>>();
1515
/// <summary>

csharp/ToolGood.Algorithm2/DiyNameInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace ToolGood.Algorithm
66
/// <summary>
77
/// 自定义类型
88
/// </summary>
9-
public class DiyNameInfo
9+
public sealed class DiyNameInfo
1010
{
1111
/// <summary>
1212
/// 自定义 参数

csharp/ToolGood.Algorithm2/Internals/AntlrCharStream.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace ToolGood.Algorithm.Internals
1616
/// 'BEGIN' if constructor parameter upper=true but getText() would return
1717
/// 'BeGiN'.
1818
/// </summary>
19-
class AntlrCharStream : ICharStream
19+
sealed class AntlrCharStream : ICharStream
2020
{
2121
private ICharStream stream;
2222

csharp/ToolGood.Algorithm2/Internals/AntlrErrorListener.cs

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

44
namespace ToolGood.Algorithm.Internals
55
{
6-
class AntlrErrorListener : IAntlrErrorListener<IToken>
6+
sealed class AntlrErrorListener : IAntlrErrorListener<IToken>
77
{
88
public bool IsError { get; private set; }
99
public string ErrorMsg { get; private set; }

csharp/ToolGood.Algorithm2/Internals/AntlrLookupEngine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace ToolGood.Algorithm.Internals
22
{
3-
class AntlrLookupEngine : AlgorithmEngine
3+
sealed class AntlrLookupEngine : AlgorithmEngine
44
{
55
public Operand Json;
66

csharp/ToolGood.Algorithm2/Internals/CharUtil.cs

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

55
namespace ToolGood.Algorithm.Internals
66
{
7-
class CharUtil
7+
static class CharUtil
88
{
99
public static char StandardChar(char o)
1010
{

csharp/ToolGood.Algorithm2/Internals/ConditionCacheInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace ToolGood.Algorithm.Internals
77
/// <summary>
88
/// 条件缓存
99
/// </summary>
10-
public class ConditionCacheInfo
10+
public sealed class ConditionCacheInfo
1111
{
1212
/// <summary>
1313
/// 类型名

csharp/ToolGood.Algorithm2/Internals/ConditionTree.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace ToolGood.Algorithm.Internals
77
/// <summary>
88
/// 条件树
99
/// </summary>
10-
public class ConditionTree
10+
public sealed class ConditionTree
1111
{
1212
/// <summary>
1313
/// 子节点

csharp/ToolGood.Algorithm2/Internals/DiyNameVisitor.cs

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

44
namespace ToolGood.Algorithm.Internals
55
{
6-
class DiyNameVisitor : AbstractParseTreeVisitor<Object>, ImathVisitor<Object>
6+
sealed class DiyNameVisitor : AbstractParseTreeVisitor<Object>, ImathVisitor<Object>
77
{
88
internal DiyNameInfo diy = new DiyNameInfo();
99

0 commit comments

Comments
 (0)