From ca47896204482bf4a6979e3838bf7f09f61cebeb Mon Sep 17 00:00:00 2001
From: giy <giy@omp-system.ru>
Date: Fri, 02 Sep 2022 14:16:56 +0300
Subject: [PATCH] Обновление до версии 2.9.0
---
QtVsTools.RegExpr/expression/RegExprToken.cs | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/QtVsTools.RegExpr/expression/RegExprToken.cs b/QtVsTools.RegExpr/expression/RegExprToken.cs
index 08152b1..47dce8e 100644
--- a/QtVsTools.RegExpr/expression/RegExprToken.cs
+++ b/QtVsTools.RegExpr/expression/RegExprToken.cs
@@ -57,13 +57,13 @@
{
public string Id { get; set; }
- public bool SkipLeadingWhitespace { get; set; }
- public RegExpr LeadingWhitespace { get; set; }
+ private bool SkipLeadingWhitespace { get; }
+ private RegExpr LeadingWhitespace { get; }
- public RegExpr Expr { get; set; }
+ private RegExpr Expr { get; }
- public HashSet<Token> Children { get; set; }
- public Dictionary<string, Token> Parents { get; set; }
+ private HashSet<Token> Children { get; }
+ public Dictionary<string, Token> Parents { get; }
public IEnumerable<string> CaptureIds => Parents.Keys;
public Token(string id, RegExpr skipWs, RegExpr expr)
@@ -170,7 +170,7 @@
/// <summary>
/// Set of rules that can be applied to the token.
/// </summary>
- TokenRules Rules { get; set; }
+ TokenRules Rules { get; }
public void Add(IProductionRule rule)
{
@@ -221,7 +221,7 @@
public class TokenGroup : IEnumerable<string>
{
- HashSet<string> TokenIds { get; set; }
+ HashSet<string> TokenIds { get; }
public TokenGroup(params string[] tokenIds)
{
@@ -261,7 +261,7 @@
public class TokenRules : IEnumerable<IProductionRule>
{
- Dictionary<RuleCallback.Selector, IProductionRule> Rules { get; set; }
+ Dictionary<RuleCallback.Selector, IProductionRule> Rules { get; }
IProductionRule DefaultRule { get; set; }
public TokenRules()
@@ -383,6 +383,6 @@
public object Production { get; }
}
- static TokenEndOfList EndOfList = new TokenEndOfList();
+ static readonly TokenEndOfList EndOfList = new TokenEndOfList();
}
}
--
Gitblit v1.9.1