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

10
LINES

< > BotCompany Repo | #1033168 // tok_typeArgs_declToInvocation

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

Libraryless. Click here for Pure Java version (10179L/56K).

1  
// TODO: more cases
2  
sS tok_typeArgs_declToInvocation(S typeArgs) {
3  
  LS tok = javaTok(typeArgs);
4  
  int i;
5  
  while ((i = jfind(tok, "extends <id>")) >= 0) {
6  
    int j = tok_endOfType(tok, i+2);
7  
    clearTokens(tok, i, j);
8  
  }
9  
  ret join(tok);
10  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033168
Snippet name: tok_typeArgs_declToInvocation
Eternal ID of this version: #1033168/3
Text MD5: f45165121e33d2ddebfae9bea5c1f1a3
Transpilation MD5: 68596b208608effceb023abc79ba753c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-06 20:36:20
Source code size: 252 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 199 / 296
Version history: 2 change(s)
Referenced in: [show references]