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/parser/ParseTree.cs | 11 +++-------- 1 files changed, 3 insertions(+), 8 deletions(-) diff --git a/QtVsTools.RegExpr/parser/ParseTree.cs b/QtVsTools.RegExpr/parser/ParseTree.cs index 1ee054c..4ff56d0 100644 --- a/QtVsTools.RegExpr/parser/ParseTree.cs +++ b/QtVsTools.RegExpr/parser/ParseTree.cs @@ -26,11 +26,8 @@ ** ****************************************************************************/ -using System; using System.Collections.Generic; -using System.Diagnostics; using System.Linq; -using System.Text.RegularExpressions; namespace QtVsTools.SyntaxAnalysis { @@ -70,7 +67,7 @@ } } - static NodeComparer _Comparer = new NodeComparer(); + static readonly NodeComparer _Comparer = new NodeComparer(); public static IComparer<Node> Comparer { get { return _Comparer; } } public Token Token { get; set; } @@ -80,11 +77,9 @@ public Node Parent { get; set; } - SortedList<int, Node> _ChildNodes = new SortedList<int, Node>(); - public SortedList<int, Node> ChildNodes { get { return _ChildNodes; } } + public SortedList<int, Node> ChildNodes { get; } = new SortedList<int, Node>(); - ProductionObjects _ChildProductions = new ProductionObjects(); - public ProductionObjects ChildProductions { get { return _ChildProductions; } } + public ProductionObjects ChildProductions { get; } = new ProductionObjects(); public Queue<Node> TokenStream { get; set; } public Stack<Node> OperatorStack { get; set; } -- Gitblit v1.9.1