I want to match two statements and treat the pattern as
one selection. The following code segment shows code
similar to what exists in my project:
and I want to be able to match the two lines appending the
":" and hashCode and use this as a selection so I can
replace it with some other code.
I'm getting either a no match, or multiple selections,
each corresponding to a variable I defined in the pattern:
where sb is defined as 'sb' and counts are 0 - 100, target
append is defined as 'append' and counts are 0 - 100, target
hashCode is defined as 'hashCode', counts 0-100, target.
I've tried to create a surrounding scope, defining the
surrounding class and the toString method as part of
the pattern, but I cannot get the thing to treat the
matched pattern as a single selection to be operated on.