Transpiled version (10656L) is out of date.
1 | svoid tok_script_settable(LS tok) { |
2 | int i; |
3 | while ((i = jfind(tok, "settable <id> :")) >= 0) { |
4 | S id = tok.get(i+2); |
5 | int iType = i+6; |
6 | S type = tok_script_scanType(tok, i+6); |
7 | S getter = "def !synthetic " + id + ": " + type + " { this !_getField_ " + id + "}"; |
8 | S setter = "def !synthetic " + id + " " + id + ": " + type + " { this " + id + " <- " + id + "; this }"; |
9 | replaceToken_reTok(tok, i, joinWithSpace(getter, setter)); |
10 | } |
11 | } |
Began life as a copy of #1036295
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1036483 |
Snippet name: | tok_script_settable |
Eternal ID of this version: | #1036483/7 |
Text MD5: | 22528349243bccc86e47bdedc7a52ae7 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-01-21 21:20:10 |
Source code size: | 464 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 156 / 204 |
Version history: | 6 change(s) |
Referenced in: | [show references] |