Skip to content

Commit

Permalink
refact: better parameter names for Warning
Browse files Browse the repository at this point in the history
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
  • Loading branch information
oSumAtrIX committed Jun 5, 2022
1 parent e5bea06 commit d677d9e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ interface PatternScanMethod {
/**
* Represents a resolver warning.
* @param expected The opcode the signature expected it to be.
* @param actual The actual opcode it was. Always different from [expected].
* @param expectedIndex The index for [expected]. Relative to the instruction list.
* @param actualIndex The index for [actual]. Relative to the pattern list from the signature.
* @param current The current opcode in the pattern. Always different from [expected].
* @param instructionIndex The index of the opcode relative to the instruction list.
* @param patternIndex The index of the opcode relative to the pattern list from the signature.
*/
data class Warning(
val expected: Opcode,
val actual: Opcode,
val expectedIndex: Int,
val actualIndex: Int,
val current: Opcode,
val instructionIndex: Int,
val patternIndex: Int,
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ internal class SignatureResolver(
) {
this.add(
PatternScanMethod.Fuzzy.Warning(
patternOpcode, originalOpcode,
patternIndex, originalIndex,
originalOpcode, patternOpcode,
originalIndex, patternIndex,
)
)
}
Expand Down

0 comments on commit d677d9e

Please sign in to comment.