1 | static L<PTElement> ptElement_pathFromRoot(PTElement e) {
|
2 | new L<PTElement> l; |
3 | while (e != null) {
|
4 | l.add(e); |
5 | e = e.parent; |
6 | } |
7 | reverseInPlace(l); |
8 | ret l; |
9 | } |
Began life as a copy of #1017431
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1023869 |
| Snippet name: | ptElement_pathFromRoot |
| Eternal ID of this version: | #1023869/3 |
| Text MD5: | b3cbea5267be54d677a5b8ae333773f0 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-07-10 20:19:34 |
| Source code size: | 177 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 484 / 519 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |