aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/scssphp/scssphp/src/Block
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/scssphp/scssphp/src/Block')
-rw-r--r--vendor/scssphp/scssphp/src/Block/AtRootBlock.php37
-rw-r--r--vendor/scssphp/scssphp/src/Block/CallableBlock.php46
-rw-r--r--vendor/scssphp/scssphp/src/Block/ContentBlock.php38
-rw-r--r--vendor/scssphp/scssphp/src/Block/DirectiveBlock.php37
-rw-r--r--vendor/scssphp/scssphp/src/Block/EachBlock.php37
-rw-r--r--vendor/scssphp/scssphp/src/Block/ElseBlock.php27
-rw-r--r--vendor/scssphp/scssphp/src/Block/ElseifBlock.php32
-rw-r--r--vendor/scssphp/scssphp/src/Block/ForBlock.php47
-rw-r--r--vendor/scssphp/scssphp/src/Block/IfBlock.php37
-rw-r--r--vendor/scssphp/scssphp/src/Block/MediaBlock.php37
-rw-r--r--vendor/scssphp/scssphp/src/Block/NestedPropertyBlock.php37
-rw-r--r--vendor/scssphp/scssphp/src/Block/WhileBlock.php32
12 files changed, 444 insertions, 0 deletions
diff --git a/vendor/scssphp/scssphp/src/Block/AtRootBlock.php b/vendor/scssphp/scssphp/src/Block/AtRootBlock.php
new file mode 100644
index 000000000..41842c269
--- /dev/null
+++ b/vendor/scssphp/scssphp/src/Block/AtRootBlock.php
@@ -0,0 +1,37 @@
+<?php
+
+/**
+ * SCSSPHP
+ *
+ * @copyright 2012-2020 Leaf Corcoran
+ *
+ * @license http://opensource.org/licenses/MIT MIT
+ *
+ * @link http://scssphp.github.io/scssphp
+ */
+
+namespace ScssPhp\ScssPhp\Block;
+
+use ScssPhp\ScssPhp\Block;
+use ScssPhp\ScssPhp\Type;
+
+/**
+ * @internal
+ */
+class AtRootBlock extends Block
+{
+ /**
+ * @var array|null
+ */
+ public $selector;
+
+ /**
+ * @var array|null
+ */
+ public $with;
+
+ public function __construct()
+ {
+ $this->type = Type::T_AT_ROOT;
+ }
+}
diff --git a/vendor/scssphp/scssphp/src/Block/CallableBlock.php b/vendor/scssphp/scssphp/src/Block/CallableBlock.php
new file mode 100644
index 000000000..9b32d8ce7
--- /dev/null
+++ b/vendor/scssphp/scssphp/src/Block/CallableBlock.php
@@ -0,0 +1,46 @@
+<?php
+
+/**
+ * SCSSPHP
+ *
+ * @copyright 2012-2020 Leaf Corcoran
+ *
+ * @license http://opensource.org/licenses/MIT MIT
+ *
+ * @link http://scssphp.github.io/scssphp
+ */
+
+namespace ScssPhp\ScssPhp\Block;
+
+use ScssPhp\ScssPhp\Block;
+use ScssPhp\ScssPhp\Compiler\Environment;
+use ScssPhp\ScssPhp\Node\Number;
+
+/**
+ * @internal
+ */
+class CallableBlock extends Block
+{
+ /**
+ * @var string
+ */
+ public $name;
+
+ /**
+ * @var list<array{string, array|Number|null, bool}>|null
+ */
+ public $args;
+
+ /**
+ * @var Environment|null
+ */
+ public $parentEnv;
+
+ /**
+ * @param string $type
+ */
+ public function __construct($type)
+ {
+ $this->type = $type;
+ }
+}
diff --git a/vendor/scssphp/scssphp/src/Block/ContentBlock.php b/vendor/scssphp/scssphp/src/Block/ContentBlock.php
new file mode 100644
index 000000000..870849800
--- /dev/null
+++ b/vendor/scssphp/scssphp/src/Block/ContentBlock.php
@@ -0,0 +1,38 @@
+<?php
+
+/**
+ * SCSSPHP
+ *
+ * @copyright 2012-2020 Leaf Corcoran
+ *
+ * @license http://opensource.org/licenses/MIT MIT
+ *
+ * @link http://scssphp.github.io/scssphp
+ */
+
+namespace ScssPhp\ScssPhp\Block;
+
+use ScssPhp\ScssPhp\Block;
+use ScssPhp\ScssPhp\Compiler\Environment;
+use ScssPhp\ScssPhp\Type;
+
+/**
+ * @internal
+ */
+class ContentBlock extends Block
+{
+ /**
+ * @var array|null
+ */
+ public $child;
+
+ /**
+ * @var Environment|null
+ */
+ public $scope;
+
+ public function __construct()
+ {
+ $this->type = Type::T_INCLUDE;
+ }
+}
diff --git a/vendor/scssphp/scssphp/src/Block/DirectiveBlock.php b/vendor/scssphp/scssphp/src/Block/DirectiveBlock.php
new file mode 100644
index 000000000..b1d3d1a81
--- /dev/null
+++ b/vendor/scssphp/scssphp/src/Block/DirectiveBlock.php
@@ -0,0 +1,37 @@
+<?php
+
+/**
+ * SCSSPHP
+ *
+ * @copyright 2012-2020 Leaf Corcoran
+ *
+ * @license http://opensource.org/licenses/MIT MIT
+ *
+ * @link http://scssphp.github.io/scssphp
+ */
+
+namespace ScssPhp\ScssPhp\Block;
+
+use ScssPhp\ScssPhp\Block;
+use ScssPhp\ScssPhp\Type;
+
+/**
+ * @internal
+ */
+class DirectiveBlock extends Block
+{
+ /**
+ * @var string|array
+ */
+ public $name;
+
+ /**
+ * @var string|array|null
+ */
+ public $value;
+
+ public function __construct()
+ {
+ $this->type = Type::T_DIRECTIVE;
+ }
+}
diff --git a/vendor/scssphp/scssphp/src/Block/EachBlock.php b/vendor/scssphp/scssphp/src/Block/EachBlock.php
new file mode 100644
index 000000000..b3289579d
--- /dev/null
+++ b/vendor/scssphp/scssphp/src/Block/EachBlock.php
@@ -0,0 +1,37 @@
+<?php
+
+/**
+ * SCSSPHP
+ *
+ * @copyright 2012-2020 Leaf Corcoran
+ *
+ * @license http://opensource.org/licenses/MIT MIT
+ *
+ * @link http://scssphp.github.io/scssphp
+ */
+
+namespace ScssPhp\ScssPhp\Block;
+
+use ScssPhp\ScssPhp\Block;
+use ScssPhp\ScssPhp\Type;
+
+/**
+ * @internal
+ */
+class EachBlock extends Block
+{
+ /**
+ * @var string[]
+ */
+ public $vars = [];
+
+ /**
+ * @var array
+ */
+ public $list;
+
+ public function __construct()
+ {
+ $this->type = Type::T_EACH;
+ }
+}
diff --git a/vendor/scssphp/scssphp/src/Block/ElseBlock.php b/vendor/scssphp/scssphp/src/Block/ElseBlock.php
new file mode 100644
index 000000000..6abb4d775
--- /dev/null
+++ b/vendor/scssphp/scssphp/src/Block/ElseBlock.php
@@ -0,0 +1,27 @@
+<?php
+
+/**
+ * SCSSPHP
+ *
+ * @copyright 2012-2020 Leaf Corcoran
+ *
+ * @license http://opensource.org/licenses/MIT MIT
+ *
+ * @link http://scssphp.github.io/scssphp
+ */
+
+namespace ScssPhp\ScssPhp\Block;
+
+use ScssPhp\ScssPhp\Block;
+use ScssPhp\ScssPhp\Type;
+
+/**
+ * @internal
+ */
+class ElseBlock extends Block
+{
+ public function __construct()
+ {
+ $this->type = Type::T_ELSE;
+ }
+}
diff --git a/vendor/scssphp/scssphp/src/Block/ElseifBlock.php b/vendor/scssphp/scssphp/src/Block/ElseifBlock.php
new file mode 100644
index 000000000..4622bca79
--- /dev/null
+++ b/vendor/scssphp/scssphp/src/Block/ElseifBlock.php
@@ -0,0 +1,32 @@
+<?php
+
+/**
+ * SCSSPHP
+ *
+ * @copyright 2012-2020 Leaf Corcoran
+ *
+ * @license http://opensource.org/licenses/MIT MIT
+ *
+ * @link http://scssphp.github.io/scssphp
+ */
+
+namespace ScssPhp\ScssPhp\Block;
+
+use ScssPhp\ScssPhp\Block;
+use ScssPhp\ScssPhp\Type;
+
+/**
+ * @internal
+ */
+class ElseifBlock extends Block
+{
+ /**
+ * @var array
+ */
+ public $cond;
+
+ public function __construct()
+ {
+ $this->type = Type::T_ELSEIF;
+ }
+}
diff --git a/vendor/scssphp/scssphp/src/Block/ForBlock.php b/vendor/scssphp/scssphp/src/Block/ForBlock.php
new file mode 100644
index 000000000..a9cf6733b
--- /dev/null
+++ b/vendor/scssphp/scssphp/src/Block/ForBlock.php
@@ -0,0 +1,47 @@
+<?php
+
+/**
+ * SCSSPHP
+ *
+ * @copyright 2012-2020 Leaf Corcoran
+ *
+ * @license http://opensource.org/licenses/MIT MIT
+ *
+ * @link http://scssphp.github.io/scssphp
+ */
+
+namespace ScssPhp\ScssPhp\Block;
+
+use ScssPhp\ScssPhp\Block;
+use ScssPhp\ScssPhp\Type;
+
+/**
+ * @internal
+ */
+class ForBlock extends Block
+{
+ /**
+ * @var string
+ */
+ public $var;
+
+ /**
+ * @var array
+ */
+ public $start;
+
+ /**
+ * @var array
+ */
+ public $end;
+
+ /**
+ * @var bool
+ */
+ public $until;
+
+ public function __construct()
+ {
+ $this->type = Type::T_FOR;
+ }
+}
diff --git a/vendor/scssphp/scssphp/src/Block/IfBlock.php b/vendor/scssphp/scssphp/src/Block/IfBlock.php
new file mode 100644
index 000000000..9f21bf88a
--- /dev/null
+++ b/vendor/scssphp/scssphp/src/Block/IfBlock.php
@@ -0,0 +1,37 @@
+<?php
+
+/**
+ * SCSSPHP
+ *
+ * @copyright 2012-2020 Leaf Corcoran
+ *
+ * @license http://opensource.org/licenses/MIT MIT
+ *
+ * @link http://scssphp.github.io/scssphp
+ */
+
+namespace ScssPhp\ScssPhp\Block;
+
+use ScssPhp\ScssPhp\Block;
+use ScssPhp\ScssPhp\Type;
+
+/**
+ * @internal
+ */
+class IfBlock extends Block
+{
+ /**
+ * @var array
+ */
+ public $cond;
+
+ /**
+ * @var array<ElseifBlock|ElseBlock>
+ */
+ public $cases = [];
+
+ public function __construct()
+ {
+ $this->type = Type::T_IF;
+ }
+}
diff --git a/vendor/scssphp/scssphp/src/Block/MediaBlock.php b/vendor/scssphp/scssphp/src/Block/MediaBlock.php
new file mode 100644
index 000000000..c49ee1b2b
--- /dev/null
+++ b/vendor/scssphp/scssphp/src/Block/MediaBlock.php
@@ -0,0 +1,37 @@
+<?php
+
+/**
+ * SCSSPHP
+ *
+ * @copyright 2012-2020 Leaf Corcoran
+ *
+ * @license http://opensource.org/licenses/MIT MIT
+ *
+ * @link http://scssphp.github.io/scssphp
+ */
+
+namespace ScssPhp\ScssPhp\Block;
+
+use ScssPhp\ScssPhp\Block;
+use ScssPhp\ScssPhp\Type;
+
+/**
+ * @internal
+ */
+class MediaBlock extends Block
+{
+ /**
+ * @var string|array|null
+ */
+ public $value;
+
+ /**
+ * @var array|null
+ */
+ public $queryList;
+
+ public function __construct()
+ {
+ $this->type = Type::T_MEDIA;
+ }
+}
diff --git a/vendor/scssphp/scssphp/src/Block/NestedPropertyBlock.php b/vendor/scssphp/scssphp/src/Block/NestedPropertyBlock.php
new file mode 100644
index 000000000..1ea4a6c8a
--- /dev/null
+++ b/vendor/scssphp/scssphp/src/Block/NestedPropertyBlock.php
@@ -0,0 +1,37 @@
+<?php
+
+/**
+ * SCSSPHP
+ *
+ * @copyright 2012-2020 Leaf Corcoran
+ *
+ * @license http://opensource.org/licenses/MIT MIT
+ *
+ * @link http://scssphp.github.io/scssphp
+ */
+
+namespace ScssPhp\ScssPhp\Block;
+
+use ScssPhp\ScssPhp\Block;
+use ScssPhp\ScssPhp\Type;
+
+/**
+ * @internal
+ */
+class NestedPropertyBlock extends Block
+{
+ /**
+ * @var bool
+ */
+ public $hasValue;
+
+ /**
+ * @var array
+ */
+ public $prefix;
+
+ public function __construct()
+ {
+ $this->type = Type::T_NESTED_PROPERTY;
+ }
+}
diff --git a/vendor/scssphp/scssphp/src/Block/WhileBlock.php b/vendor/scssphp/scssphp/src/Block/WhileBlock.php
new file mode 100644
index 000000000..ac18d4e02
--- /dev/null
+++ b/vendor/scssphp/scssphp/src/Block/WhileBlock.php
@@ -0,0 +1,32 @@
+<?php
+
+/**
+ * SCSSPHP
+ *
+ * @copyright 2012-2020 Leaf Corcoran
+ *
+ * @license http://opensource.org/licenses/MIT MIT
+ *
+ * @link http://scssphp.github.io/scssphp
+ */
+
+namespace ScssPhp\ScssPhp\Block;
+
+use ScssPhp\ScssPhp\Block;
+use ScssPhp\ScssPhp\Type;
+
+/**
+ * @internal
+ */
+class WhileBlock extends Block
+{
+ /**
+ * @var array
+ */
+ public $cond;
+
+ public function __construct()
+ {
+ $this->type = Type::T_WHILE;
+ }
+}