We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e262e92 commit 52ba417Copy full SHA for 52ba417
src/QAST/Compiler.nqp
@@ -528,6 +528,11 @@ class QAST::Compiler is HLL::Compiler {
528
self.as_post($node)
529
}
530
531
+ multi method as_post(QAST::Want $node) {
532
+ # If we're not in a coercive context, take the default.
533
+ self.as_post($node[0])
534
+ }
535
+
536
multi method as_post(QAST::IVal $node) {
537
self.post_new('Ops', :result(~$node.value))
538
src/QAST/Want.nqp
@@ -0,0 +1,2 @@
1
+class QAST::Want is QAST::Node {
2
+}
tools/build/Makefile.in
@@ -77,6 +77,7 @@ QAST_SOURCES = \
77
src/QAST/SVal.nqp \
78
src/QAST/BVal.nqp \
79
src/QAST/WVal.nqp \
80
+ src/QAST/Want.nqp \
81
src/QAST/Var.nqp \
82
src/QAST/Op.nqp \
83
src/QAST/VM.nqp \
0 commit comments