Release 0.5.3 #30
Annotations
10 warnings
Run infection:
src/AST/Symbol.php#L40
Escaped Mutant for Mutator "AssignCoalesce":
--- Original
+++ New
@@ @@
*/
public function getSymbol() : Node
{
- return $this->symbol ??= $this->getHeader()->getChild($this->getIndex());
+ return $this->symbol = $this->getHeader()->getChild($this->getIndex());
}
}
|
Run infection:
src/AST/Translator.php#L26
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
public function run() : void
{
- $this->stack->reset();
+
$rootNode = $this->tree->getRootNode();
$this->listener->onStart($rootNode);
$this->stack->push($rootNode);
|
Run infection:
src/AST/Translator.php#L28
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
$this->stack->reset();
$rootNode = $this->tree->getRootNode();
- $this->listener->onStart($rootNode);
+
$this->stack->push($rootNode);
while (!$this->stack->isEmpty()) {
$symbol = $this->stack->pop();
|
Run infection:
src/AST/Translator.php#L37
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
} elseif ($symbol instanceof Node) {
$this->stack->push(new EopSymbol($symbol));
$this->listener->onBeginProduction($symbol, $this->stack);
- } elseif ($symbol instanceof Symbol) {
+ } elseif (true) {
$this->listener->onSymbol($symbol, $this->stack);
}
}
|
Run infection:
src/AST/Translator.php#L41
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$this->listener->onSymbol($symbol, $this->stack);
}
}
- $this->listener->onFinish();
+
}
}
|
Run infection:
src/AST/Tree.php#L22
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
private ?int $rootNodeId = null;
public function createNode(string $name, int $id = null) : Node
{
- $node = new Node($id ?? $this->getNextNodeId(), $name);
+ $node = new Node($this->getNextNodeId() ?? $id, $name);
$this->nodeMap[$node->getId()] = $node;
return $node;
}
|
Run infection:
src/AST/Tree.php#L61
Escaped Mutant for Mutator "Increment":
--- Original
+++ New
@@ @@
}
private function getNextNodeId() : int
{
- return $this->nextNodeId++;
+ return $this->nextNodeId--;
}
}
|
Run infection:
src/Grammar/ContextFree/Grammar.php#L177
Escaped Mutant for Mutator "ArrayOneItem":
--- Original
+++ New
@@ @@
$productionList[] = $production;
}
}
- return $productionList;
+ return count($productionList) > 1 ? array_slice($productionList, 0, 1, true) : $productionList;
}
}
|
Run infection:
src/Grammar/ContextFree/Production.php#L23
Escaped Mutant for Mutator "UnwrapArrayValues":
--- Original
+++ New
@@ @@
private array $symbolList;
public function __construct(private readonly int $headerId, private readonly int $index, int ...$symbolList)
{
- $this->symbolList = array_values($symbolList);
+ $this->symbolList = $symbolList;
}
public function __toString() : string
{
|
Run infection:
src/Grammar/ContextFree/TokenFactory.php#L27
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
{
return $this->createToken($this->grammar->getEoiToken());
}
- protected function isEoi(int $tokenId) : bool
+ private function isEoi(int $tokenId) : bool
{
return $this->grammar->isEoiToken($tokenId);
}
}
|
The logs for this run have expired and are no longer available.
Loading