1 | static L<PTElement> ai_scanParseTreeForWord_all(PTElement e, S word) {
|
2 | new L<PTElement> out; |
3 | ai_scanParseTreeForWord_all_scan(e, word, out); |
4 | ret out; |
5 | } |
6 | |
7 | svoid ai_scanParseTreeForWord_all_scan(PTElement e, S word, L<PTElement> out) {
|
8 | if (e == null) ret; |
9 | if (eqic(e.text(), word)) ret with out.add(e); |
10 | for (PTElement child : unnull(e.children)) |
11 | ai_scanParseTreeForWord_all_scan(child, word, out); |
12 | } |
Began life as a copy of #1017491
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1017492 |
| Snippet name: | ai_scanParseTreeForWord_all |
| Eternal ID of this version: | #1017492/4 |
| Text MD5: | 71e5cbee5085bd0c227cf9d0a78387da |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-07-23 22:53:57 |
| Source code size: | 423 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 543 / 581 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |