Add variable_name_expr to render's ParseTreeVisitor

Solves Shopify/theme-check#582

`icon` should be visited in the render tag for the following snippet:

```liquid
{% assign icon = 'warning' }
{% render 'icon' with icon %}
```
This commit is contained in:
Charles-P. Clermont
2022-07-18 08:48:18 -04:00
parent 1fdc577246
commit 992e15a173
3 changed files with 17 additions and 1 deletions
+2 -1
View File
@@ -31,7 +31,7 @@ module Liquid
disable_tags "include"
attr_reader :template_name_expr, :attributes
attr_reader :template_name_expr, :variable_name_expr, :attributes
def initialize(tag_name, markup, options)
super
@@ -99,6 +99,7 @@ module Liquid
def children
[
@node.template_name_expr,
@node.variable_name_expr,
] + @node.attributes.values
end
end