Provide dynamic operations currying for Algebra<T> instead of eager calls and add JS code generation support #162
@ -37,7 +37,6 @@ internal class ESTreeBuilder<T>(val bodyCallback: ESTreeBuilder<T>.() -> BaseExp
|
|||||||
}
|
}
|
||||||
|
|
||||||
private val constants = mutableListOf<Any>()
|
private val constants = mutableListOf<Any>()
|
||||||
private val keys = mutableListOf<String>()
|
|
||||||
|
|
||||||
fun constant(value: Any?) = when {
|
fun constant(value: Any?) = when {
|
||||||
value == null || jsTypeOf(value) == "number" || jsTypeOf(value) == "string" || jsTypeOf(value) == "boolean" ->
|
value == null || jsTypeOf(value) == "number" || jsTypeOf(value) == "string" || jsTypeOf(value) == "boolean" ->
|
||||||
|
Loading…
Reference in New Issue
Block a user