shiftNodes static method
Shifts the sourceRange of suffix nodes by the delta offset
nodes Suffix node list
delta Offset change (new length - old length)
Returns the offset-shifted node list
Implementation
static List<LatexNode> shiftNodes(List<LatexNode> nodes, int delta) {
if (delta == 0 || nodes.isEmpty) return nodes;
return nodes.map((node) => _shiftNode(node, delta)).toList();
}