sreich
07/08/2022, 12:45 PM$Before$.$MethodCall$($Parameter$) , problem is..it matches on <http://log.info|log.info> { } as well as <http://log.info|log.info> (), how can i get it to not match on lambda? I set complete match but it still doesn't listen to me, i want it to take the parentheses as isRoukanken
07/08/2022, 2:18 PM<http://log.info|log.info> { } is same as <http://log.info|log.info>({ }) - and { } gets matched to your $Parameter$Roukanken
07/08/2022, 2:18 PMsreich
07/08/2022, 2:23 PM{ $Parameter$ } , this matches <http://log.info|log.info> {} onlysreich
07/08/2022, 2:23 PMsreich
07/08/2022, 2:24 PMRoukanken
07/08/2022, 2:28 PMfunc { } is just a syntax sugar for func( { } ) they have the exact same meaning
which means ASTs look something like this:
• func { } AST is:
◦ call a method (taken from whatever is func ) and give it as parameters:
▪︎ lambda function
• func({ }) AST is same ↑
• func { $parameter$ } is:
◦ call a method (taken from whatever is func ) and give it as parameters:
▪︎ lambda function
• of which content is "return `$parameter$`"sreich
07/08/2022, 2:31 PM{} which matches log.debug {}, and not log.debug() . so it definitely treats it differentlyRoukanken
07/08/2022, 3:09 PMsreich
07/08/2022, 3:25 PMRoukanken
07/08/2022, 3:27 PM<http://log.info|log.info> { $x$ } matches only the first one
but <http://log.info|log.info>({ $x$ }) matches bothsreich
07/08/2022, 5:23 PMsreich
07/08/2022, 5:23 PMsreich
07/08/2022, 6:13 PMRoukanken
07/08/2022, 6:15 PMsreich
07/08/2022, 6:16 PMRoukanken
07/08/2022, 6:20 PM