1 | static S dollarVarsToStars(S s) { |
2 | ret dollarVarsToStars(s, null); |
3 | } |
4 | |
5 | static S dollarVarsToStars(S s, L<S> varNames_out) { |
6 | L<S> tok = javaTok(s); |
7 | for (int i = 1; i < l(tok); i += 2) { |
8 | S t = tok.get(i); |
9 | if (isDollarVar(t)) { |
10 | listAdd(varNames_out, t); |
11 | tok.set(i, "*"); |
12 | } else if (eq(t, "*")) |
13 | listAdd(varNames_out, "*"); |
14 | } |
15 | ret join(tok); |
16 | } |
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: | #1010854 |
Snippet name: | dollarVarsToStars |
Eternal ID of this version: | #1010854/5 |
Text MD5: | 2c518f547c28ed1db148bbdb8ab354b7 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-04 22:39:29 |
Source code size: | 394 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 444 / 472 |
Version history: | 4 change(s) |
Referenced in: | [show references] |