Skip to content

Commit

Permalink
Fix #49
Browse files Browse the repository at this point in the history
  • Loading branch information
k94ll13nn3 committed Feb 19, 2018
1 parent 22cf84e commit 272bab3
Show file tree
Hide file tree
Showing 56 changed files with 44 additions and 119 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// stylecop.header
using System;
using System;
using System.Collections.Generic;

namespace Strinken.Engine
namespace Strinken.Core
{
/// <summary>
/// Action dictionary used by the token stack to resolve the string.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;

namespace Strinken.Engine
namespace Strinken.Core
{
/// <summary>
/// Class that handles the base operators.
Expand Down
6 changes: 2 additions & 4 deletions src/Strinken/Engine/Cursor.cs → src/Strinken/Core/Cursor.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
// stylecop.header
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Strinken.Common;

namespace Strinken.Engine
namespace Strinken.Core
{
/// <summary>
/// Cursor used to read a string.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// stylecop.header

namespace Strinken.Engine
namespace Strinken.Core
{
/// <summary>
/// Results of the engine's run.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// stylecop.header

namespace Strinken.Engine
namespace Strinken.Core
{
/// <summary>
/// Class that contains error messages.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Strinken.Common
namespace Strinken.Core
{
/// <summary>
/// Collection of common extensions methods.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Strinken.Engine
namespace Strinken.Core
{
/// <summary>
/// An indicator that follows an operator and defines a parsing method.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;

namespace Strinken.Engine
namespace Strinken.Core
{
/// <summary>
/// An operator that defines a set of indicators.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// stylecop.header
using System;

namespace Strinken.Engine
namespace Strinken.Core
{
/// <summary>
/// Base class for all parsing result.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Strinken.Engine
namespace Strinken.Core
{
/// <summary>
/// Method of parsing.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Strinken.Engine
namespace Strinken.Core
{
/// <summary>
/// Method of resolution.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// stylecop.header

namespace Strinken.Engine
namespace Strinken.Core
{
/// <summary>
/// Class that contains the different possible separators and indicators.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;

namespace Strinken.Engine
namespace Strinken.Core
{
/// <summary>
/// Core engine of Strinken.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// stylecop.header
using System;

namespace Strinken.Parser
namespace Strinken.Core
{
/// <summary>
/// Factory that creates tags.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// stylecop.header

namespace Strinken.Engine
namespace Strinken.Core
{
/// <summary>
/// An element in the stack.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;

namespace Strinken.Engine
namespace Strinken.Core
{
/// <summary>
/// Stack used by the engine to manage a list of tokens.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// stylecop.header

namespace Strinken.Engine
namespace Strinken.Core
{
/// <summary>
/// Type of a token.
Expand Down
8 changes: 3 additions & 5 deletions src/Strinken/Filters/BaseFilters.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
// stylecop.header
using System;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using Strinken.Common;
using Strinken.Parser;
using Strinken.Core;

namespace Strinken.Filters
namespace Strinken
{
/// <summary>
/// Class that handles the base filters and (un)registration of base filters.
Expand Down
4 changes: 1 addition & 3 deletions src/Strinken/Filters/FilterWithoutArguments.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Strinken.Parser;

namespace Strinken.Filters
namespace Strinken
{
/// <summary>
/// Base class for all filters that do not have arguments.
Expand Down
5 changes: 1 addition & 4 deletions src/Strinken/Filters/IfEqualFilter.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// stylecop.header
using Strinken.Parser;

namespace Strinken.Filters
namespace Strinken
{
/// <summary>
/// Does an equality test with the input and the specified value and renders a value depending on the output of the test.
Expand Down
5 changes: 1 addition & 4 deletions src/Strinken/Filters/LeadingZerosFilter.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// stylecop.header
using Strinken.Parser;

namespace Strinken.Filters
namespace Strinken
{
/// <summary>
/// Formats the input with leading zeros until reaching the specified length.
Expand Down
4 changes: 1 addition & 3 deletions src/Strinken/Filters/LengthFilter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// stylecop.header

namespace Strinken.Filters
namespace Strinken
{
/// <summary>
/// Transforms the input into its length.
Expand Down
5 changes: 1 addition & 4 deletions src/Strinken/Filters/LowerFilter.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// stylecop.header
using Strinken.Parser;

namespace Strinken.Filters
namespace Strinken
{
/// <summary>
/// Transforms the input to lowercase.
Expand Down
5 changes: 1 addition & 4 deletions src/Strinken/Filters/NullFilter.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// stylecop.header
using Strinken.Parser;

namespace Strinken.Filters
namespace Strinken
{
/// <summary>
/// Returns the specified argument if the input is null.
Expand Down
3 changes: 1 addition & 2 deletions src/Strinken/Filters/RepeatFilter.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System.Linq;
using Strinken.Parser;

namespace Strinken.Filters
namespace Strinken
{
/// <summary>
/// Repeats the input as many times as specified.
Expand Down
5 changes: 1 addition & 4 deletions src/Strinken/Filters/ReplaceFilter.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// stylecop.header
using Strinken.Parser;

namespace Strinken.Filters
namespace Strinken
{
/// <summary>
/// Takes some couples of arguments, and replace each occurrence of each first argument by the second.
Expand Down
5 changes: 1 addition & 4 deletions src/Strinken/Filters/UpperFilter.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// stylecop.header
using Strinken.Parser;

namespace Strinken.Filters
namespace Strinken
{
/// <summary>
/// Transforms the input to uppercase.
Expand Down
2 changes: 1 addition & 1 deletion src/Strinken/Parser/IFilter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// stylecop.header

namespace Strinken.Parser
namespace Strinken
{
/// <summary>
/// Interface describing a filter.
Expand Down
2 changes: 1 addition & 1 deletion src/Strinken/Parser/IParameterTag.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// stylecop.header

namespace Strinken.Parser
namespace Strinken
{
/// <summary>
/// Interface describing a parameter tag.
Expand Down
2 changes: 1 addition & 1 deletion src/Strinken/Parser/ITag`1.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// stylecop.header

namespace Strinken.Parser
namespace Strinken
{
/// <summary>
/// Interface describing a tag.
Expand Down
2 changes: 1 addition & 1 deletion src/Strinken/Parser/IToken.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// stylecop.header

namespace Strinken.Parser
namespace Strinken
{
/// <summary>
/// Base interface describing a token.
Expand Down
3 changes: 2 additions & 1 deletion src/Strinken/Parser/ParserExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// stylecop.header
using System;
using System.Collections.Generic;
using Strinken.Core;

namespace Strinken.Parser
namespace Strinken
{
/// <summary>
/// Extensions for the <see cref="Parser{T}"/> class.
Expand Down
6 changes: 2 additions & 4 deletions src/Strinken/Parser/Parser`1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using Strinken.Common;
using Strinken.Engine;
using Strinken.Filters;
using Strinken.Core;

namespace Strinken.Parser
namespace Strinken
{
/// <summary>
/// Strinken parser.
Expand Down
2 changes: 1 addition & 1 deletion src/Strinken/Parser/ValidationResult.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// stylecop.header
namespace Strinken.Parser
namespace Strinken
{
/// <summary>
/// Class representing the result of the validation process.
Expand Down
2 changes: 0 additions & 2 deletions test/Strinken.Public.Tests/Filters/BaseFiltersTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using FluentAssertions;
using Strinken.Filters;
using Strinken.Parser;
using Strinken.Public.Tests.TestsClasses;
using Xunit;

Expand Down
1 change: 0 additions & 1 deletion test/Strinken.Public.Tests/Parser/CompilationTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using FluentAssertions;
using Strinken.Parser;
using Strinken.Public.Tests.TestsClasses;
using Xunit;

Expand Down
1 change: 0 additions & 1 deletion test/Strinken.Public.Tests/Parser/ConstructorTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using FluentAssertions;
using Strinken.Parser;
using Strinken.Public.Tests.TestsClasses;
using Xunit;

Expand Down
1 change: 0 additions & 1 deletion test/Strinken.Public.Tests/Parser/ExtensionsTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Linq;
using FluentAssertions;
using Strinken.Parser;
using Strinken.Public.Tests.TestsClasses;
using Xunit;

Expand Down
1 change: 0 additions & 1 deletion test/Strinken.Public.Tests/Parser/ResolveTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using FluentAssertions;
using Strinken.Parser;
using Strinken.Public.Tests.TestsClasses;
using Xunit;

Expand Down
1 change: 0 additions & 1 deletion test/Strinken.Public.Tests/Parser/TokenTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.ObjectModel;
using System.Linq;
using FluentAssertions;
using Strinken.Parser;
using Strinken.Public.Tests.TestsClasses;
using Xunit;

Expand Down
1 change: 0 additions & 1 deletion test/Strinken.Public.Tests/Parser/ValidateTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using FluentAssertions;
using Strinken.Parser;
using Strinken.Public.Tests.TestsClasses;
using Xunit;

Expand Down
2 changes: 0 additions & 2 deletions test/Strinken.Public.Tests/TestsClasses/Filters.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Strinken.Parser;

namespace Strinken.Public.Tests.TestsClasses
{
public class AppendFilter : IFilter
Expand Down
4 changes: 1 addition & 3 deletions test/Strinken.Public.Tests/TestsClasses/ParameterTags.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Strinken.Parser;

namespace Strinken.Public.Tests.TestsClasses
namespace Strinken.Public.Tests.TestsClasses
{
public class BlueParameterTag : IParameterTag
{
Expand Down
2 changes: 0 additions & 2 deletions test/Strinken.Public.Tests/TestsClasses/Tags.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Strinken.Parser;

namespace Strinken.Public.Tests.TestsClasses
{
public class DataNameTag : ITag<Data>
Expand Down
2 changes: 1 addition & 1 deletion test/Strinken.Tests/ActionsTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.Linq;
using FluentAssertions;
using Strinken.Engine;
using Strinken.Core;
using Xunit;

namespace Strinken.Tests
Expand Down
2 changes: 1 addition & 1 deletion test/Strinken.Tests/CursorTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using FluentAssertions;
using Strinken.Engine;
using Strinken.Core;
using Xunit;

namespace Strinken.Tests
Expand Down
2 changes: 1 addition & 1 deletion test/Strinken.Tests/EngineTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using FluentAssertions;
using Strinken.Engine;
using Strinken.Core;
using Xunit;

namespace Strinken.Tests
Expand Down
Loading

0 comments on commit 272bab3

Please sign in to comment.