Code: Select all
doSomething item 95 of line 4201 of x
Maybe the above can be translated to this:
Code: Select all
doSomething char 12044 to 12091 of x
If there are multiple chunk connections to a string value, then a change to the length of the chunk can then change all other chunks to the right. (The implementation would have to find the parent string, then find all chunks connected to the string.) This would have the same behavior as passing a chunk expression, except for those cases that change the chunk location such as putting a comma in the middle of an item. So, what I propose here would still work for this:
Code: Select all
doSomethingTo2Things item 3 of line 17 of x, item 8 of line 34 of x
However, one advantage of passing the chunk expression is that it allows optimization in the future.