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

8
LINES

< > BotCompany Repo | #1030765 // test_tok_ifNullAssign (OK)

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

Libraryless. Click here for Pure Java version (3784L/23K).

svoid test_tok_ifNullAssign() {
  testTranspilationFunction tok_ifNullAssign(
    "return a if null = blabla();",
      "{ if (a == null) a = blabla(); return a; }",
    "a if null = blubb;",
      "if (a == null) a = blubb;",
  );
}

Author comment

Began life as a copy of #1030390

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030765
Snippet name: test_tok_ifNullAssign (OK)
Eternal ID of this version: #1030765/5
Text MD5: 435d3985e6df51e4c8ec807829221fa5
Transpilation MD5: ee5a71bf507552819384a484826371a4
Author: stefan
Category: javax / transpiling
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-03-19 15:30:10
Source code size: 240 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 102 / 178
Version history: 4 change(s)
Referenced in: [show references]