diff options
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/disassembly.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rust/src/disassembly.rs b/rust/src/disassembly.rs index c1021197..ed9b0854 100644 --- a/rust/src/disassembly.rs +++ b/rust/src/disassembly.rs @@ -545,6 +545,10 @@ pub enum InstructionTextTokenKind { // TODO: Explain what this is hash: Option<u64>, }, + NewLine { + // Offset into instruction that this new line is associated with + value: u64, + }, } impl InstructionTextTokenKind { @@ -721,6 +725,7 @@ impl InstructionTextTokenKind { }, } } + BNInstructionTextTokenType::NewLineToken => Self::NewLine { value: value.value }, } } @@ -756,6 +761,7 @@ impl InstructionTextTokenKind { InstructionTextTokenKind::ExternalSymbol { value, .. } => Some(*value), InstructionTextTokenKind::StackVariable { variable_id, .. } => Some(*variable_id), InstructionTextTokenKind::CollapseStateIndicator { hash, .. } => *hash, + InstructionTextTokenKind::NewLine { value, .. } => Some(*value), _ => None, } } @@ -925,6 +931,7 @@ impl From<InstructionTextTokenKind> for BNInstructionTextTokenType { InstructionTextTokenKind::CollapseStateIndicator { .. } => { BNInstructionTextTokenType::CollapseStateIndicatorToken } + InstructionTextTokenKind::NewLine { .. } => BNInstructionTextTokenType::NewLineToken, } } } |
