c:sum/@of: Support let values
It's not good that c:let is still doing its own logic for this. * src/current/compiler/js-calc.xsl (compile-calc)[c:sum[@of]]: Support c:let values.master v2.8.11
parent
f2a9cd6af8
commit
b36cc3a942
|
@ -202,6 +202,8 @@
|
||||||
|
|
||||||
<variable name="func" select="ancestor::lv:function" />
|
<variable name="func" select="ancestor::lv:function" />
|
||||||
|
|
||||||
|
<!-- XXX: this needs to use compile-calc-value, but can't right now
|
||||||
|
beacuse it's not a c:value-of! -->
|
||||||
<variable name="value">
|
<variable name="value">
|
||||||
<choose>
|
<choose>
|
||||||
<!-- is @of a function param? -->
|
<!-- is @of a function param? -->
|
||||||
|
@ -216,6 +218,11 @@
|
||||||
<value-of select="@of" />
|
<value-of select="@of" />
|
||||||
</when>
|
</when>
|
||||||
|
|
||||||
|
<!-- let expression -->
|
||||||
|
<when test="$of = ancestor::c:let/c:values/c:value/@name">
|
||||||
|
<value-of select="$of" />
|
||||||
|
</when>
|
||||||
|
|
||||||
<!-- maybe a constant? -->
|
<!-- maybe a constant? -->
|
||||||
<when test="
|
<when test="
|
||||||
root(.)/preproc:symtable/preproc:sym[
|
root(.)/preproc:symtable/preproc:sym[
|
||||||
|
|
Loading…
Reference in New Issue