- A lot of bugfixes made for this release.
This commit is contained in:
1 parent
4e909b2840
commit
8df38b568c
13 files changed
+159
-71
No files matched your search
@@ -4,8 +4,6 @@ namespace Picea\Language;
|
||||
|
||||
use Picea\Compiler;
|
||||
|
||||
use Picea\Compiler\Context;
|
||||
|
||||
class DefaultRegistrations implements LanguageRegistration
|
||||
{
|
||||
protected array $extensions;
|
||||
@@ -13,12 +11,9 @@ class DefaultRegistrations implements LanguageRegistration
|
||||
protected array $syntaxes;
|
||||
|
||||
protected array $controlStructures;
|
||||
|
||||
protected ? Context $context;
|
||||
|
||||
public function __construct(? Context $context = null, array $extensions = [], array $syntaxes = [], array $controlStructure = [])
|
||||
|
||||
public function __construct(array $extensions = [], array $syntaxes = [], array $controlStructure = [])
|
||||
{
|
||||
$this->context = $context;
|
||||
$this->extensions = $extensions;
|
||||
$this->syntaxes = $syntaxes;
|
||||
$this->controlStructures = $controlStructure;
|
||||
@@ -69,8 +64,8 @@ class DefaultRegistrations implements LanguageRegistration
|
||||
{
|
||||
$compiler->registerExtension(new \Picea\Extension\PhpExtension());
|
||||
$compiler->registerExtension(new \Picea\Extension\PrintExtension());
|
||||
$compiler->registerExtension(new \Picea\Extension\JsonExtension($this->context));
|
||||
|
||||
$compiler->registerExtension(new \Picea\Extension\JsonExtension());
|
||||
|
||||
foreach($this->extensions ?? [] as $extension) {
|
||||
$compiler->registerExtension($extension);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user