1 | // returns only rules that actually changed (keeping the IDs) |
2 | static L<TextCommentsID> gazelle_transformRulesUsingWordMap(SS map, L<TextCommentsID> rules) { |
3 | new L<TextCommentsID> out; |
4 | for (TextCommentsID t : rules) { |
5 | TextCommentsID t2 = new( |
6 | replaceWords_includingCamelCase(map, t.text), |
7 | replaceWords_includingCamelCase(map, t.comments), |
8 | t.id); |
9 | if (neq(t.text, t2.text)) out.add(t2); |
10 | } |
11 | ret out; |
12 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022424 |
Snippet name: | gazelle_transformRulesUsingWordMap |
Eternal ID of this version: | #1022424/2 |
Text MD5: | f369017b58bca65258c883761a03c314 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-17 11:33:26 |
Source code size: | 441 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 228 / 274 |
Version history: | 1 change(s) |
Referenced in: | [show references] |