Share packed box diagnostics across native execution
This commit is contained in:
1 parent
526ec9b3b0
commit
ca3730338e
13 files changed
+126
-22
No files matched your search
@@ -1,6 +1,7 @@
|
||||
//! Lossless native list diagnostics; never infer TeX nodes from painted positions.
|
||||
use super::registers::print_scaled;
|
||||
use super::*;
|
||||
use std::sync::Arc;
|
||||
mod math;
|
||||
pub(super) use math::show_math;
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash, serde::Serialize, serde::Deserialize)]
|
||||
@@ -72,12 +73,12 @@ pub struct DiagnosticBox {
|
||||
pub depth: i64,
|
||||
pub shift: i64,
|
||||
pub setting: GlueSetting,
|
||||
pub nodes: Vec<DiagnosticNode>,
|
||||
pub nodes: Arc<[DiagnosticNode]>,
|
||||
}
|
||||
pub(super) fn box_view(b: &NativeBox) -> DiagnosticBox {
|
||||
let nodes = match &b.content {
|
||||
BoxContent::Horizontal(_) => b.diagnostic.clone(),
|
||||
BoxContent::Vertical(v) => vertical_nodes(v),
|
||||
BoxContent::Vertical(v) => vertical_nodes(v).into(),
|
||||
};
|
||||
DiagnosticBox {
|
||||
kind: b.kind,
|
||||
|
||||
Reference in new issue
Block a user