aboutsummaryrefslogtreecommitdiffstats
path: root/Visitor/Compiler.php
diff options
context:
space:
mode:
Diffstat (limited to 'Visitor/Compiler.php')
-rw-r--r--Visitor/Compiler.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/Visitor/Compiler.php b/Visitor/Compiler.php
index 38600f3..4c52a70 100644
--- a/Visitor/Compiler.php
+++ b/Visitor/Compiler.php
@@ -297,6 +297,13 @@ class Compiler implements \Hoa\Visitor\Visit {
'(' . implode(', ', $oout) . ')';
}
}
+ elseif($element instanceof \Hoa\Realdom\Crate\Constant) {
+
+ $holder = $element->getHolder();
+ $praspel = $element->getPraspelRepresentation();
+ $out .= '$' . $element->getDeclaration()->getId() .
+ '[\'' . $praspel() . '\']';
+ }
elseif($element instanceof \Hoa\Realdom\Crate\Variable) {
$holder = $element->getVariable();