lib/liquidscript/compiler/icr/functions.rb in liquidscript-0.7.6 vs lib/liquidscript/compiler/icr/functions.rb in liquidscript-0.7.7

- old
+ new

@@ -37,30 +37,9 @@ :comma => action.shift call = code :call, subject, *arguments call end - - protected - - def value_expect(v, &default) - out = expect \ - :lparen => action { compile_call(v) }, - :equal => action { compile_assignment(v) }, - :prop => action { compile_property(v) }, - :lbrack => action { compile_access(v) }, - [:binop, - :minus, - :plus] => action { compile_binop(v) }, - :unop => action { |o| code :op, v, o }, - :_ => default || action { v } - - if out != v - value_expect(out) - else - out - end - end end end end end