Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1030453 - test_tok_findEndOfStatement (OK)

JavaX fragment (include) [tags: use-pretranspiled]

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 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

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: 40 / 65
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1030453 & http://1030453.tinybrain.de