Skip to content

Commit

Permalink
Removed unnecessary comment templates
Browse files Browse the repository at this point in the history
  • Loading branch information
TwinkmrMask committed Sep 1, 2021
1 parent 604985c commit 772f6ad
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 195 deletions.
10 changes: 10 additions & 0 deletions .idea/.idea.Platform.Data.Doublets.Xml/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/.idea.Platform.Data.Doublets.Xml/.idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/.idea.Platform.Data.Doublets.Xml/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/.idea.Platform.Data.Doublets.Xml/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/.idea.Platform.Data.Doublets.Xml/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 2 additions & 30 deletions csharp/Platform.Data.Doublets.Xml/XmlElementContext.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member

namespace Platform.Data.Doublets.Xml
{
Expand All @@ -12,39 +12,11 @@ namespace Platform.Data.Doublets.Xml
/// </summary>
internal class XmlElementContext
{
/// <summary>
/// <para>
/// The children names counts.
/// </para>
/// <para></para>
/// </summary>
public readonly Dictionary<string, int> ChildrenNamesCounts;
/// <summary>
/// <para>
/// The total children.
/// </para>
/// <para></para>
/// </summary>
public readonly Dictionary<string, int> ChildrenNamesCounts;
public int TotalChildren;

/// <summary>
/// <para>
/// Initializes a new <see cref="XmlElementContext"/> instance.
/// </para>
/// <para></para>
/// </summary>
public XmlElementContext() => ChildrenNamesCounts = new Dictionary<string, int>();

/// <summary>
/// <para>
/// Increments the child name count using the specified name.
/// </para>
/// <para></para>
/// </summary>
/// <param name="name">
/// <para>The name.</para>
/// <para></para>
/// </param>
public void IncrementChildNameCount(string name)
{
if (ChildrenNamesCounts.TryGetValue(name, out int count))
Expand Down
49 changes: 3 additions & 46 deletions csharp/Platform.Data.Doublets.Xml/XmlElementCounter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,29 +64,7 @@ public Task Count(string file, string elementName, CancellationToken token)
}
}, token);
}

/// <summary>
/// <para>
/// Counts the reader.
/// </para>
/// <para></para>
/// </summary>
/// <param name="reader">
/// <para>The reader.</para>
/// <para></para>
/// </param>
/// <param name="elementNameToCount">
/// <para>The element name to count.</para>
/// <para></para>
/// </param>
/// <param name="token">
/// <para>The token.</para>
/// <para></para>
/// </param>
/// <param name="context">
/// <para>The context.</para>
/// <para></para>
/// </param>

private void Count(XmlReader reader, string elementNameToCount, CancellationToken token, XmlElementContext context)
{
var rootContext = (RootElementContext)context;
Expand Down Expand Up @@ -146,30 +124,9 @@ private void Count(XmlReader reader, string elementNameToCount, CancellationToke
}
}
}

/// <summary>
/// <para>
/// Returns the x path using the specified path.
/// </para>
/// <para></para>
/// </summary>
/// <param name="path">
/// <para>The path.</para>
/// <para></para>
/// </param>
/// <returns>
/// <para>The string</para>
/// <para></para>
/// </returns>

private string ToXPath(Stack<string> path) => string.Join("/", path.Reverse());

/// <summary>
/// <para>
/// Represents the root element context.
/// </para>
/// <para></para>
/// </summary>
/// <seealso cref="XmlElementContext"/>

private class RootElementContext : XmlElementContext
{
/// <summary>
Expand Down
8 changes: 1 addition & 7 deletions csharp/Platform.Data.Doublets.Xml/XmlExporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@ namespace Platform.Data.Doublets.Xml
/// </para>
/// <para></para>
/// </summary>
class XmlExporter<TLink>
public class XmlExporter<TLink>
{
/// <summary>
/// <para>
/// The storage.
/// </para>
/// <para></para>
/// </summary>
private readonly IXmlStorage<TLink> _storage;

/// <summary>
Expand Down
65 changes: 2 additions & 63 deletions csharp/Platform.Data.Doublets.Xml/XmlImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ namespace Platform.Data.Doublets.Xml {
/// </summary>
public class XmlImporter<TLink>
{
/// <summary>
/// <para>
/// The storage.
/// </para>
/// <para></para>
/// </summary>
private readonly IXmlStorage<TLink> _storage;

/// <summary>
Expand Down Expand Up @@ -73,25 +67,7 @@ public Task Import(string file, CancellationToken token)
}, token);
}

/// <summary>
/// <para>
/// Reads the reader.
/// </para>
/// <para></para>
/// </summary>
/// <param name="reader">
/// <para>The reader.</para>
/// <para></para>
/// </param>
/// <param name="token">
/// <para>The token.</para>
/// <para></para>
/// </param>
/// <param name="context">
/// <para>The context.</para>
/// <para></para>
/// </param>

private void Read(XmlReader reader, CancellationToken token, ElementContext context)
{
var parentContexts = new Stack<ElementContext>();
Expand Down Expand Up @@ -146,49 +122,12 @@ private void Read(XmlReader reader, CancellationToken token, ElementContext cont
}
}

/// <summary>
/// <para>
/// Returns the x path using the specified path.
/// </para>
/// <para></para>
/// </summary>
/// <param name="path">
/// <para>The path.</para>
/// <para></para>
/// </param>
/// <returns>
/// <para>The string</para>
/// <para></para>
/// </returns>
private string ToXPath(Stack<string> path) => string.Join("/", path.Reverse());

/// <summary>
/// <para>
/// Represents the element context.
/// </para>
/// <para></para>
/// </summary>
/// <seealso cref="XmlElementContext"/>

private class ElementContext : XmlElementContext
{
/// <summary>
/// <para>
/// The parent.
/// </para>
/// <para></para>
/// </summary>
public readonly TLink Parent;

/// <summary>
/// <para>
/// Initializes a new <see cref="ElementContext"/> instance.
/// </para>
/// <para></para>
/// </summary>
/// <param name="parent">
/// <para>A parent.</para>
/// <para></para>
/// </param>
public ElementContext(TLink parent) => Parent = parent;
}
}
Expand Down
51 changes: 2 additions & 49 deletions csharp/Platform.Data.Doublets.Xml/XmlIndexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,48 +20,11 @@ namespace Platform.Data.Doublets.Xml
/// <seealso cref="IXmlStorage{TLink}"/>
public class XmlIndexer<TLink> : IXmlStorage<TLink>
{
/// <summary>
/// <para>
/// The zero.
/// </para>
/// <para></para>
/// </summary>
private static readonly TLink _zero = default;
/// <summary>
/// <para>
/// The zero.
/// </para>
/// <para></para>
/// </summary>
private static readonly TLink _one = Arithmetic.Increment(_zero);

/// <summary>
/// <para>
/// The index.
/// </para>
/// <para></para>
/// </summary>
private readonly CachedFrequencyIncrementingSequenceIndex<TLink> _index;
/// <summary>
/// <para>
/// The char to unicode symbol converter.
/// </para>
/// <para></para>
/// </summary>
private readonly CharToUnicodeSymbolConverter<TLink> _charToUnicodeSymbolConverter;
/// <summary>
/// <para>
/// The unicode symbol marker.
/// </para>
/// <para></para>
/// </summary>
private TLink _unicodeSymbolMarker;
/// <summary>
/// <para>
/// The null constant.
/// </para>
/// <para></para>
/// </summary>
private readonly TLink _nullConstant;

/// <summary>
Expand Down Expand Up @@ -92,17 +55,7 @@ public XmlIndexer(ILinks<TLink> links)
InitConstants(links);
_charToUnicodeSymbolConverter = new CharToUnicodeSymbolConverter<TLink>(links, addressToRawNumberConverter, _unicodeSymbolMarker);
}

/// <summary>
/// <para>
/// Inits the constants using the specified links.
/// </para>
/// <para></para>
/// </summary>
/// <param name="links">
/// <para>The links.</para>
/// <para></para>
/// </param>

private void InitConstants(ILinks<TLink> links)
{
var markerIndex = _one;
Expand Down Expand Up @@ -303,7 +256,7 @@ public TLink GetTextElement(string content)
/// <para>A list of i list t link</para>
/// <para></para>
/// </returns>
public IList<IList<TLink>> GetChildren(TLink parent)
public IList<TLink> GetChildren(TLink parent)
{
throw new System.NotImplementedException();
}
Expand Down

0 comments on commit 772f6ad

Please sign in to comment.