liquid-java/liquidjava

Change instance variable numbers for line numbers instead of counter

Open

#132 opened on Dec 10, 2025

 (2 comments) (0 reactions) (0 assignees)Java (36 forks)auto 404
enhancementgood first issue

Repository metrics

Stars
 (66 stars)
PR merge metrics
 (PR metrics pending)

Description

Whenever we are creating a new instance of a variable or a fresh one, we keep the variable name and concatenate it with an incremental counter (e.g., a0, x1, y2). A simple change would be to use the line number where this value was introduced, instead of the counter. Example:

The error could be #x_25 == #x_24 - 10 where 24 and 25 are the lines where these were introduced. A question could be, if multiple vars are changed could we still use the same tactic? Lets try and make some tests to see.

Contributor guide