Files
gristlabs_grist-core/sandbox/grist
Dmitry S fb1332d529 (core) Fix bug with renaming when a formula uses a local name for a user table.
Summary:
When a formula used a local variable referring to a user table (which is
a global name), e.g. `myvar = MyTable; myvar.lookupOne(...)`, renaming
logic mistakenly used the inferred name (`MyTable`) in places where the
actual variable name (`myvar`) should have been used.

Additionally, we should not rename local variables, even if they match a
global name.

This fixes both issues.

Test Plan: Added a test case that checks that local variables aren't renamed.

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D3846
2023-04-02 22:57:38 -04:00
..
2022-06-17 21:53:20 +02:00
2022-10-17 13:38:21 +02:00
2020-07-29 08:57:25 -04:00
2023-02-08 17:15:59 +01:00
2022-02-19 09:46:49 +00:00
2022-06-17 21:53:20 +02:00
2022-05-04 21:41:42 +02:00
2022-05-04 21:41:42 +02:00