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

13
LINES

< > BotCompany Repo | #1026300 // test_tok_tildeCalls (OK)

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

Libraryless. Click here for Pure Java version (3625L/22K).

1  
svoid test_tok_tildeCalls() {
2  
  LS tok = javaTok("gazelle_guild()~.getRoles()";
3  
  tok_tildeCalls(tok);
4  
  assertEqualsVerbose([[call(gazelle_guild(), "getRoles")]], join(tok));
5  
  
6  
  tok = javaTok("gazelle_guild()~.L getRoles()";
7  
  tok_tildeCalls(tok);
8  
  assertEqualsVerbose([[(L) call(gazelle_guild(), "getRoles")]], join(tok));
9  
  
10  
  testTranspilationFunction tok_tildeCalls(
11  
    "a~.text", [[getOpt text(a)]]
12  
  );
13  
}

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: #1026300
Snippet name: test_tok_tildeCalls (OK)
Eternal ID of this version: #1026300/7
Text MD5: 9f7cf366217722822c01773c9e24c7e9
Transpilation MD5: 09fd0f009ca9fd2dd9d6a422b090f913
Author: stefan
Category: javax / transpiling
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-03-21 20:35:00
Source code size: 429 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 163 / 277
Version history: 6 change(s)
Referenced in: [show references]