Add ParseTreeVisitor to RangeLookup

This commit is contained in:
Charles-P. Clermont
2021-09-09 11:22:39 -04:00
parent 50d1a2ffc9
commit c8906d05b9
2 changed files with 15 additions and 0 deletions
+8
View File
@@ -12,6 +12,8 @@ module Liquid
end
end
attr_reader :start_obj, :end_obj
def initialize(start_obj, end_obj)
@start_obj = start_obj
@end_obj = end_obj
@@ -35,5 +37,11 @@ module Liquid
Utils.to_integer(input)
end
end
class ParseTreeVisitor < Liquid::ParseTreeVisitor
def children
[@node.start_obj, @node.end_obj]
end
end
end
end