@@ -270,7 +270,7 @@ indexedMatcher(
270270 reference(" Lcom/some/Class;->someMethod()V" ),
271271 literal(1L ),
272272 registers(1 , 2 , 3 ),
273- instruction { opcode == Opcode .INVOKEVIRTUAL },
273+ instruction { opcode == Opcode .INVOKE_VIRTUAL },
274274 allOf(noneOf(opcode(Opcode .CONST_STRING ), opcode(Opcode .CONST )), anyOf(string(" A" ), string(" B" )))
275275)
276276```
@@ -330,7 +330,7 @@ the following APIs are available to use indexed matchers in a declarative way:
330330``` kt
331331firstMethodDeclaratively {
332332 instructions( string(), method())
333- opcodes(Opcode .CONST_STRING , Opcodes .INVOKE_VIRTUAL ) // Matches sequentially using after().
333+ opcodes(Opcode .CONST_STRING , Opcode .INVOKE_VIRTUAL ) // Matches sequentially using after().
334334 strings(" A" , " B" , " C" ) // Matches full strings using unorderedAllOf(); Also uses them for fast lookup.
335335}
336336```
@@ -350,7 +350,7 @@ val match = firstMethodComposite {
350350 after(2 .. 3 , method(" name" ))
351351 )
352352 strings(" someString" , " anotherString" )
353- opcodes(Opcode .INVOKEVIRTUAL , Opcode .INVOKEINTERFACE )
353+ opcodes(Opcode .INVOKE_VIRTUAL , Opcode .INVOKE_INTERFACE )
354354}
355355
356356match.method
0 commit comments