martmists
05/28/2022, 4:44 PMparens rule if you check prop.name in getValue or provideDelegate, but is there a way the resolve() call could get access to this information somehow? I checked the stack trace and couldn't really find anything that could give this informationephemient
05/28/2022, 4:48 PMsequence? that isn't the standard library'smartmists
05/28/2022, 4:48 PMmartmists
05/28/2022, 4:52 PMDummyParser$root$2) but when inlined this is not available (same call: DummyParser$special$$inlined$sequence$1)Joffrey
05/28/2022, 4:53 PMsequence could provide this information to nested resolve callsJoffrey
05/28/2022, 4:53 PMresolve as a regular argument of courseephemient
05/28/2022, 4:55 PMfun sequence(block: SequenceScope.() -> Unit) where interface SequenceScope { fun Char.resolve() }, then resolve can have access to it as long as you provide it in SequenceScopeJoffrey
05/28/2022, 4:56 PMsequence didn't know about resolve. Another option, if this is just for error handling, would be to add a try/catch inside the implementation of sequence that wraps exceptions into a higher level one with additional debug information. But that option might not always be possible/suitable depending on how sequence runs its lambda