Libraryless. Click here for Pure Java version (2969L/19K).
1 | svoid test_tok_findEndOfStatement() { |
2 | testFunctionValues((IF1<S>) s -> { |
3 | LS tok = javaTok(s); |
4 | ret join(takeFirst(tok, tok_findEndOfStatement(tok, 1))); |
5 | }, |
6 | "for (bla) { ... } ret;", |
7 | "for (bla) { ... }", |
8 | "ret new Bla { ... }; test;", |
9 | "ret new Bla { ... };", |
10 | ); |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030453 |
Snippet name: | test_tok_findEndOfStatement (OK) |
Eternal ID of this version: | #1030453/3 |
Text MD5: | 9cef5df568e8f31541091160c6fd75cc |
Transpilation MD5: | bffb878de87f9cd0c3de7d0eb0adc2ee |
Author: | stefan |
Category: | javax / transpiling |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-12-18 18:57:17 |
Source code size: | 300 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 276 / 390 |
Version history: | 2 change(s) |
Referenced in: | [show references] |