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
+1
View File
@@ -11,6 +11,7 @@
### Fixes
* `PartialCache` now shares snippet cache with subcontexts by default (#1553) [Chris AtLee]
* Hash registers no longer leak into subcontexts as static registers (#1564) [Chris AtLee]
* Fix `ParseTreeVisitor` for `with` variable expressions in `Render` tag (#1596) [CP Clermont]
### Changed
* Liquid::Context#registers now always returns a Liquid::Registers object, though supports the most used Hash functions for compatibility (#1553)