1 | static bool isDollarVar(S s) { |
2 | // Possible BREAKING CHANGE (although probably OK): now also accepting $1 etc. |
3 | ret startsWith(s, '$') && l(s) > 1; |
4 | // OLD: ret startsWith(s, '$') && isJavaIdentifierAfter(s, 1); |
5 | } |
6 | |
7 | ifclass Symbol |
8 | ifdef SymbolWithMasterSymbol |
9 | static bool isDollarVar(Symbol s) { |
10 | ret s != null && s.master.dollarVar; |
11 | } |
12 | endifdef |
13 | endif |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1010853 |
Snippet name: | isDollarVar |
Eternal ID of this version: | #1010853/5 |
Text MD5: | 7bd4c75818af8328f40bd10cfe8e3abb |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-09-08 03:49:38 |
Source code size: | 365 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 463 / 544 |
Version history: | 4 change(s) |
Referenced in: | [show references] |