Hello, I'm trying to understand how to define a correct pattern and I'm lost with the cases where I use a method pattern and the desired code is inside a block.
In the case where we search (methods) with metavariables and the code is inside a block.
An Example:
This pattern
`a: `aa `b: `bb
| `@temps |
� ``@.Stats.
�``@.some size ``@.more.�
�``@.Stats2.
Does not match with:
insideABlock: arg1 part2: arg2
|temp1 �temp3|
[arg1 size].
temp1 := arg2 + 3.
^arg2
After looking while I realize that is not matching with
part1: arg1 part2: arg2
|temp1 temp2 temp3|
arg1 size.
temp1 := arg2 + 3.
^arg2
Until I understand:
�``@.some size ``@.more.�
This should mean: anything that sends the message size, doesn't matter if we have something before or after, I think that this expression should match both cases.
But maybe I'm missunderstanding the patterns (again).
Any help with this will be really welcome!