static LS gazelle_expandThey(final GazelleTree tree) { if (!cic(tree.line, "they")) null; LS replacements = uniquify(map afterEquals_trim(collect line(gazelle_searchTreeUpwardsForDefinitions("they", tree)))); if (empty(replacements)) null; ret map(replacements, func(S s) -> S { jreplaceIC(tree.line, "they", optCurly(s)) }); }
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: | #1021576 |
Snippet name: | gazelle_expandThey |
Eternal ID of this version: | #1021576/2 |
Text MD5: | ff3da1e709df432f7961fe8112385038 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-18 17:16:18 |
Source code size: | 348 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 301 / 336 |
Version history: | 1 change(s) |
Referenced in: | [show references] |