TwoClocks
04/27/2025, 7:00 PMlogDebug("name:{s} id:{d}", name, id)
I want to generate this function in the compiler plugin.TwoClocks
04/27/2025, 7:02 PMTwoClocks
04/27/2025, 7:02 PMTwoClocks
04/27/2025, 7:04 PMChrimaeon
04/27/2025, 7:06 PMYoussef Shoaib [MOD]
04/27/2025, 7:07 PMlogDebug
, correct? You'll do some monomorphization of calls, but those mangled functions won't be visible to e.g. the autocomplete in IDE?TwoClocks
04/27/2025, 7:09 PMlogDebug
won't be defined anyplace until the plugin runs. I don't care about being able to "see" it's impl in the IDE or anyting (be handy for debugging though).Chrimaeon
04/27/2025, 7:10 PMTwoClocks
04/27/2025, 7:12 PMYoussef Shoaib [MOD]
04/27/2025, 7:13 PMlogDebug("name:$name id:$id")
Youssef Shoaib [MOD]
04/27/2025, 7:14 PMChrimaeon
04/27/2025, 7:14 PMTwoClocks
04/27/2025, 7:15 PMYoussef Shoaib [MOD]
04/27/2025, 7:16 PMIrInterpolatedString
or something, so you can extract them from there (and ofc the type information is available). Terpal definitely does this in IR, so you can see how they do it and copy itChrimaeon
04/27/2025, 7:17 PMTwoClocks
04/27/2025, 7:18 PMTwoClocks
04/27/2025, 7:19 PMTwoClocks
04/27/2025, 7:20 PMTwoClocks
04/27/2025, 7:22 PMChrimaeon
04/27/2025, 7:24 PMTwoClocks
04/27/2025, 7:42 PMTwoClocks
04/27/2025, 8:10 PMhfhbd
04/27/2025, 8:18 PMhfhbd
04/27/2025, 8:20 PMTwoClocks
04/27/2025, 8:41 PMNeeme Praks
04/28/2025, 8:26 AMlog.debug("Hello {}", world)
) with String concatenation (e.g. log.debug("Hello " + world)
).
I’m actually planning to remove that feature but maybe you find it useful as a starting point (or to copy some code).TwoClocks
04/28/2025, 8:29 PM