Skip to content

Commit 1e5f520

Browse files
committed
wip
1 parent b136e01 commit 1e5f520

File tree

5 files changed

+707
-41
lines changed

5 files changed

+707
-41
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
todo.md
1111
.env
1212
/storage/local-results
13+
/tests/snippets

app/Parser/Walker.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,11 @@ public function __construct(protected string $document, $debug = false)
5353
$this->sourceFile = (new Parser())->parseSourceFile(trim($this->document));
5454
$this->context = new Context;
5555

56-
$lastNode = null;
5756
$lastToken = null;
5857
$foundSkippedClosingQuote = false;
5958

6059
foreach ($this->sourceFile->getDescendantNodesAndTokens() as $child) {
6160
if ($child instanceof Node) {
62-
$lastNode = $child;
6361
$this->debug('initial node check', $child::class, $child->getText());
6462
} else {
6563
$lastToken = $child;

tests/Pest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
|
1212
*/
1313

14-
uses(Tests\TestCase::class)->in('Feature');
14+
uses(Tests\TestCase::class)->in('Unit');
1515

1616
/*
1717
|--------------------------------------------------------------------------
@@ -24,9 +24,9 @@
2424
|
2525
*/
2626

27-
expect()->extend('toBeOne', function () {
28-
return $this->toBe(1);
29-
});
27+
// expect()->extend('toBeOne', function () {
28+
// return $this->toBe(1);
29+
// });
3030

3131
/*
3232
|--------------------------------------------------------------------------
@@ -39,7 +39,7 @@
3939
|
4040
*/
4141

42-
function something(): void
43-
{
44-
// ..
45-
}
42+
// function something(): void
43+
// {
44+
// // ..
45+
// }

0 commit comments

Comments
 (0)