2014-10-29 10:22 GMT+01:00 Mark Rizun <mri...@gmail.com>: > Second one, I do replace node all the time. >
You insert new code inside the text view? For me, if you replace nodes and display that, then you are "slowly" replacing nodes. Anything which has some display to a user in the loop is "slow". > Thinking a bit about it, I'd try reparse, get node from selection index, >> find equal old node in old (modified) ast, or replace old (modified) ast >> with new one. >> > Can you explain this, sorry I didn't get the point > Use either =, equalTo:withMapping:, match:inContext: to find the relevant new node equal to your old node in the new ast. Thierry