lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [12/49] lucenenet git commit: .NETify FST: Interfaces should start with "I"
Date Sun, 02 Oct 2016 10:16:43 GMT
.NETify FST: Interfaces should start with "I"


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/18f84437
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/18f84437
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/18f84437

Branch: refs/heads/master
Commit: 18f84437970c1cc0d16312952a4e6726d35f97df
Parents: b8db797
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Wed Sep 7 17:30:10 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Sep 8 06:40:54 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Util/Fst/Builder.cs | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/18f84437/src/Lucene.Net.Core/Util/Fst/Builder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Util/Fst/Builder.cs b/src/Lucene.Net.Core/Util/Fst/Builder.cs
index 540b913..93dfbf6 100644
--- a/src/Lucene.Net.Core/Util/Fst/Builder.cs
+++ b/src/Lucene.Net.Core/Util/Fst/Builder.cs
@@ -573,7 +573,7 @@ namespace Lucene.Net.Util.Fst
         public class Arc<S>
         {
             public int Label; // really an "unsigned" byte
-            public Node Target;
+            public INode Target;
             public bool IsFinal;
             public S Output;
             public S NextFinalOutput;
@@ -583,7 +583,7 @@ namespace Lucene.Net.Util.Fst
         // memory while the FST is being built; it's only the
         // current "frontier":
 
-        public interface Node
+        public interface INode
         {
             bool IsCompiled { get; }
         }
@@ -593,7 +593,7 @@ namespace Lucene.Net.Util.Fst
             return fst.SizeInBytes();
         }
 
-        public sealed class CompiledNode : Node
+        public sealed class CompiledNode : INode
         {
             public long Node;
 
@@ -608,7 +608,7 @@ namespace Lucene.Net.Util.Fst
 
         /// <summary>
         /// Expert: holds a pending (seen but not yet serialized) Node. </summary>
-        public sealed class UnCompiledNode<S> : Node
+        public sealed class UnCompiledNode<S> : INode
         {
             internal readonly Builder<S> Owner;
             public int NumArcs;
@@ -666,7 +666,7 @@ namespace Lucene.Net.Util.Fst
                 return Arcs[NumArcs - 1].Output;
             }
 
-            public void AddArc(int label, Node target)
+            public void AddArc(int label, INode target)
             {
                 Debug.Assert(label >= 0);
                 // LUCENENET: Commented this because it makes testing difficult in Visual
Studio.
@@ -691,7 +691,7 @@ namespace Lucene.Net.Util.Fst
                 arc.IsFinal = false;
             }
 
-            public void ReplaceLast(int labelToMatch, Node target, S nextFinalOutput, bool
isFinal)
+            public void ReplaceLast(int labelToMatch, INode target, S nextFinalOutput, bool
isFinal)
             {
                 Debug.Assert(NumArcs > 0);
                 Arc<S> arc = Arcs[NumArcs - 1];
@@ -702,7 +702,7 @@ namespace Lucene.Net.Util.Fst
                 arc.IsFinal = isFinal;
             }
 
-            public void DeleteLast(int label, Node target)
+            public void DeleteLast(int label, INode target)
             {
                 Debug.Assert(NumArcs > 0);
                 Debug.Assert(label == Arcs[NumArcs - 1].Label);


Mime
View raw message