!7 p-experiment { makeSFSynonym("setTextAndSelectAll", "setTextSelectAll"); } svoid makeSFSynonym(S oldName, S newName) { S snippetID = stdFunctions_cached().get(oldName); if (snippetID == null) fail("Standard function " + oldName + " not found"); L tok = loadSnippet (snippetID); LL funcs = findFullFunctionDefs(tok); new L out; for (L tokF : funcs) { jreplace(tokF, oldName, newName); out.add(join(tokF)); } print(); printIndent(joinWithEmptyLines(out)); }