1 | static int nlLogic_numberOfLinesReferenced(Exp e) { |
2 | if (e cast And) |
3 | ret max(nlLogic_numberOfLinesReferenced(e.a), nlLogic_numberOfLinesReferenced(e.b)); |
4 | if (e cast Func) { |
5 | new Matches m; |
6 | if (startsWith(e.name, "line", m)) |
7 | ret parseIntOpt(m.rest()); |
8 | } |
9 | ret 0; |
10 | } |
Began life as a copy of #1017664
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: | #1017760 |
Snippet name: | nlLogic_numberOfLinesReferenced |
Eternal ID of this version: | #1017760/2 |
Text MD5: | a0b79f62ce281a46f314fc94c93d15d1 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-08-09 14:28:16 |
Source code size: | 294 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 341 / 384 |
Version history: | 1 change(s) |
Referenced in: | [show references] |