svoid tok_delegateTo(LS tok) { ITokCondition cond = (_tok, nIdx) -> !(empty(_get(_tok, nIdx)) && eqGet(_tok, nIdx-1, ".")); jreplace(tok, "delegate to .", "replace $2 with $4.$2.", cond); jreplace(tok, "delegate to ().", "replace $2 with $4().$2.", cond); // TODO: general expressions in "to" clause }