Skip to content

Commit

Permalink
Move prepared parsers out of \Prepared\Parser namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
danon committed Jun 18, 2021
1 parent 43aa2ee commit 9d42280
Show file tree
Hide file tree
Showing 16 changed files with 25 additions and 26 deletions.
6 changes: 3 additions & 3 deletions src/CleanRegex/Builder/PatternBuilder.php
Expand Up @@ -2,9 +2,9 @@
namespace TRegx\CleanRegex\Builder;

use TRegx\CleanRegex\Internal\Delimiter\Strategy\StandardStrategy;
use TRegx\CleanRegex\Internal\Prepared\Parser\InjectParser;
use TRegx\CleanRegex\Internal\Prepared\Parser\MaskParser;
use TRegx\CleanRegex\Internal\Prepared\Parser\PreparedParser;
use TRegx\CleanRegex\Internal\Prepared\InjectParser;
use TRegx\CleanRegex\Internal\Prepared\MaskParser;
use TRegx\CleanRegex\Internal\Prepared\PreparedParser;
use TRegx\CleanRegex\Internal\Prepared\PrepareFacade;
use TRegx\CleanRegex\Internal\Prepared\Template\NoTemplate;
use TRegx\CleanRegex\Pattern;
Expand Down
4 changes: 2 additions & 2 deletions src/CleanRegex/Builder/PcrePatternBuilder.php
Expand Up @@ -2,8 +2,8 @@
namespace TRegx\CleanRegex\Builder;

use TRegx\CleanRegex\Internal\Delimiter\Strategy\PcreStrategy;
use TRegx\CleanRegex\Internal\Prepared\Parser\InjectParser;
use TRegx\CleanRegex\Internal\Prepared\Parser\PreparedParser;
use TRegx\CleanRegex\Internal\Prepared\InjectParser;
use TRegx\CleanRegex\Internal\Prepared\PreparedParser;
use TRegx\CleanRegex\Internal\Prepared\PrepareFacade;
use TRegx\CleanRegex\Internal\Prepared\Template\NoTemplate;
use TRegx\CleanRegex\Pattern;
Expand Down
2 changes: 1 addition & 1 deletion src/CleanRegex/Builder/TemplateBuilder.php
Expand Up @@ -3,11 +3,11 @@

use TRegx\CleanRegex\Exception\TemplateFormatException;
use TRegx\CleanRegex\Internal\Delimiter\Strategy\DelimiterStrategy;
use TRegx\CleanRegex\Internal\Prepared\Parser\TemplateParser;
use TRegx\CleanRegex\Internal\Prepared\PrepareFacade;
use TRegx\CleanRegex\Internal\Prepared\Template\LiteralToken;
use TRegx\CleanRegex\Internal\Prepared\Template\MaskToken;
use TRegx\CleanRegex\Internal\Prepared\Template\Token;
use TRegx\CleanRegex\Internal\Prepared\TemplateParser;
use TRegx\CleanRegex\Pattern;

class TemplateBuilder
Expand Down
@@ -1,7 +1,7 @@
<?php
namespace TRegx\CleanRegex\Internal\Delimiter\Strategy;

use TRegx\CleanRegex\Internal\Prepared\Parser\Parser;
use TRegx\CleanRegex\Internal\Prepared\Parser;
use TRegx\CleanRegex\Internal\Prepared\Quotable\Factory\AlterationFactory;
use TRegx\CleanRegex\Internal\Prepared\Quotable\Quotable;

Expand Down
@@ -1,5 +1,5 @@
<?php
namespace TRegx\CleanRegex\Internal\Prepared\Parser;
namespace TRegx\CleanRegex\Internal\Prepared;

use InvalidArgumentException;
use TRegx\CleanRegex\Internal\Prepared\Quotable\Factory\QuotableFactory;
Expand Down
@@ -1,5 +1,5 @@
<?php
namespace TRegx\CleanRegex\Internal\Prepared\Parser;
namespace TRegx\CleanRegex\Internal\Prepared;

use TRegx\CleanRegex\Internal\Prepared\Quotable\Factory\QuotableFactory;
use TRegx\CleanRegex\Internal\Prepared\Quotable\Quotable;
Expand Down
@@ -1,5 +1,5 @@
<?php
namespace TRegx\CleanRegex\Internal\Prepared\Parser;
namespace TRegx\CleanRegex\Internal\Prepared;

use TRegx\CleanRegex\Internal\Prepared\Quotable\Factory\QuotableFactory;
use TRegx\CleanRegex\Internal\Prepared\Quotable\Quotable;
Expand Down
1 change: 0 additions & 1 deletion src/CleanRegex/Internal/Prepared/PrepareFacade.php
Expand Up @@ -5,7 +5,6 @@
use TRegx\CleanRegex\Internal\Delimiter\Strategy\DelimiterStrategy;
use TRegx\CleanRegex\Internal\Delimiter\Strategy\ParserQuotableAdapter;
use TRegx\CleanRegex\Internal\Delimiter\TrailingBackslashException;
use TRegx\CleanRegex\Internal\Prepared\Parser\Parser;
use TRegx\CleanRegex\Pattern;

class PrepareFacade
Expand Down
@@ -1,5 +1,5 @@
<?php
namespace TRegx\CleanRegex\Internal\Prepared\Parser;
namespace TRegx\CleanRegex\Internal\Prepared;

use InvalidArgumentException;
use TRegx\CleanRegex\Internal\Prepared\Quotable\CompositeQuotable;
Expand Down
@@ -1,5 +1,5 @@
<?php
namespace TRegx\CleanRegex\Internal\Prepared\Parser;
namespace TRegx\CleanRegex\Internal\Prepared;

use TRegx\CleanRegex\Exception\InternalCleanRegexException;
use TRegx\CleanRegex\Internal\Prepared\Quotable\Factory\QuotableFactory;
Expand Down
@@ -1,12 +1,12 @@
<?php
namespace Test\Interaction\TRegx\CleanRegex\Internal\Prepared\Parser;
namespace Test\Interaction\TRegx\CleanRegex\Internal\Prepared;

use PHPUnit\Framework\TestCase;
use Test\Utils\Impl\ConstantDelimiter;
use Test\Utils\Impl\NoAlternation;
use TRegx\CleanRegex\Exception\MaskMalformedPatternException;
use TRegx\CleanRegex\Internal\Prepared\Parser\MaskParser;
use TRegx\CleanRegex\Internal\Prepared\Parser\Parser;
use TRegx\CleanRegex\Internal\Prepared\MaskParser;
use TRegx\CleanRegex\Internal\Prepared\Parser;
use TRegx\CleanRegex\Internal\Prepared\PrepareFacade;

class MaskParserTest extends TestCase
Expand Down
Expand Up @@ -8,9 +8,9 @@
use Test\Utils\Impl\ConstantDelimiter;
use Test\Utils\Impl\MappingAlternation;
use TRegx\CleanRegex\Internal\Delimiter\Strategy\StandardStrategy;
use TRegx\CleanRegex\Internal\Prepared\Parser\InjectParser;
use TRegx\CleanRegex\Internal\Prepared\Parser\Parser;
use TRegx\CleanRegex\Internal\Prepared\Parser\PreparedParser;
use TRegx\CleanRegex\Internal\Prepared\InjectParser;
use TRegx\CleanRegex\Internal\Prepared\Parser;
use TRegx\CleanRegex\Internal\Prepared\PreparedParser;
use TRegx\CleanRegex\Internal\Prepared\PrepareFacade;
use TRegx\CleanRegex\Internal\Prepared\Template\NoTemplate;

Expand Down
@@ -1,10 +1,10 @@
<?php
namespace Test\Unit\TRegx\CleanRegex\Internal\Prepared\Parser;
namespace Test\Unit\TRegx\CleanRegex\Internal\Prepared;

use PHPUnit\Framework\TestCase;
use Test\Utils\Impl\Identity;
use TRegx\CleanRegex\Internal\Delimiter\TrailingBackslashException;
use TRegx\CleanRegex\Internal\Prepared\Parser\InjectParser;
use TRegx\CleanRegex\Internal\Prepared\InjectParser;
use TRegx\CleanRegex\Internal\Prepared\Template\NoTemplate;

class InjectParserTest extends TestCase
Expand Down
@@ -1,10 +1,10 @@
<?php
namespace Test\Unit\TRegx\CleanRegex\Internal\Prepared\Parser;
namespace Test\Unit\TRegx\CleanRegex\Internal\Prepared;

use PHPUnit\Framework\TestCase;
use Test\Utils\Impl\Identity;
use TRegx\CleanRegex\Internal\Delimiter\TrailingBackslashException;
use TRegx\CleanRegex\Internal\Prepared\Parser\PreparedParser;
use TRegx\CleanRegex\Internal\Prepared\PreparedParser;
use TRegx\CleanRegex\Internal\Prepared\Quotable\Factory\AlterationFactory;

class PreparedParserTest extends TestCase
Expand Down
@@ -1,12 +1,12 @@
<?php
namespace Test\Unit\TRegx\CleanRegex\Internal\Prepared\Parser;
namespace Test\Unit\TRegx\CleanRegex\Internal\Prepared;

use PHPUnit\Framework\TestCase;
use Test\Utils\Impl\RawToken;
use Test\Utils\Impl\ThrowToken;
use TRegx\CleanRegex\Internal\Delimiter\TrailingBackslashException;
use TRegx\CleanRegex\Internal\Prepared\Parser\TemplateParser;
use TRegx\CleanRegex\Internal\Prepared\Quotable\Factory\AlterationFactory;
use TRegx\CleanRegex\Internal\Prepared\TemplateParser;

class TemplateParserTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion test/Utils/Impl/IdentityParser.php
Expand Up @@ -2,7 +2,7 @@
namespace Test\Utils\Impl;

use PHPUnit\Framework\Assert;
use TRegx\CleanRegex\Internal\Prepared\Parser\Parser;
use TRegx\CleanRegex\Internal\Prepared\Parser;
use TRegx\CleanRegex\Internal\Prepared\Quotable\Factory\QuotableFactory;
use TRegx\CleanRegex\Internal\Prepared\Quotable\Quotable;

Expand Down

0 comments on commit 9d42280

Please sign in to comment.