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

8
LINES

< > BotCompany Repo | #1027998 // test_tok_leftScanTypeArgsOpt

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

Libraryless. Click here for Pure Java version (2697L/17K).

svoid test_tok_leftScanTypeArgsOpt() {
  LS tok = javaTok("static <bla> bool ...");
  assertEqualsVerbose("static", get(tok, tok_leftScanTypeArgsOpt(tok, indexOf(tok, "bool"))-2));
  tok = javaTok("static bool ...");
  assertEqualsVerbose("static", get(tok, tok_leftScanTypeArgsOpt(tok, indexOf(tok, "bool"))-2));
  tok = javaTok("static <A extends L<S>, B> bool ...");
  assertEqualsVerbose("static", get(tok, tok_leftScanTypeArgsOpt(tok, indexOf(tok, "bool"))-2));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027998
Snippet name: test_tok_leftScanTypeArgsOpt
Eternal ID of this version: #1027998/6
Text MD5: 427c312bc2ef123ca9d4d1f217b3e875
Transpilation MD5: 8da049a500d0169218d0751f88a979ae
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-26 19:38:53
Source code size: 475 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 196 / 304
Version history: 5 change(s)
Referenced in: [show references]