static void autoRenameSnippet(S id) { if (getSnippetType(id) == 42) { // JavaX fragment S text = loadSnippet(id); L<S> names = findFunctionDefinitions(text); if (nempty(names)) { S f = first(names); S title = getSnippetTitle(id); if (!title.startsWith(f)) { title = f + addPrefixIfNotEmpty(" - ", title); setSnippetTitle_verbose(id, title); } } } }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1006585 | 
| Snippet name: | autoRenameSnippet | 
| Eternal ID of this version: | #1006585/1 | 
| Text MD5: | c5419227988997dc3f734eefa1a30cb9 | 
| Author: | stefan | 
| Category: | javax / automation | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2017-01-19 00:09:54 | 
| Source code size: | 421 bytes / 14 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 728 / 776 | 
| Referenced in: | [show references] |