// unimplemented S bla(); => S bla() { throw unimplemented(); } svoid tok_unimplementedMethods(LS tok) { int i = -1; while ((i = jfind(tok, i+1, "unimplemented")) >= 0) { S t = get(tok, i+2); continue unless isIdentifier(t) || eq(t, "<"); int j = tok_findEndOfMethodHeader(tok, i)+1; replaceTokens(tok, i, i+2, ""); tokReplace(tok, j-1, " { throw unimplemented(); }"); reTok(tok, i, j); } }
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: | #1022735 |
Snippet name: | tok_unimplementedMethods |
Eternal ID of this version: | #1022735/5 |
Text MD5: | 314d4e4efedc478eb0aa3dd1a63f62a1 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-04-04 17:17:04 |
Source code size: | 431 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 300 / 358 |
Version history: | 4 change(s) |
Referenced in: | [show references] |