feat: adopt marqdo 3.0.0-rc.4 public analysis boundary

This commit is contained in:
cflmy committed 2026-11-25 21:18:35 +08:00
1 parent 769550b14b
commit fe18df6c4b
74 files changed
+7618 -5368

No files matched your search

+4 -7
View File
@@ -8,8 +8,8 @@ use crate::{
alignment::statement_count,
input::SourceDocument,
model::{
effect_sites, statements, AnalysisFunction, Carrier, HeadingMode, MarkdownTree, NodeId,
ProseFragment, Span, StatementKind,
effect_sites, statements, AnalysisCall, AnalysisFunction, Carrier, HeadingMode,
MarkdownTree, NodeId, ProseFragment, Span, StatementKind,
},
};
@@ -93,7 +93,7 @@ pub fn measure_document(
pub(crate) fn measure_module_function(
markdown: &MarkdownTree,
function: &AnalysisFunction,
calls: &[serde_json::Value],
calls: &[AnalysisCall],
config: NarrativeConfig,
) -> Option<FunctionNarrative> {
let mut metrics = measure_function(markdown, function, config)?;
@@ -106,10 +106,7 @@ pub fn measure_function(
analysis: &AnalysisFunction,
config: NarrativeConfig,
) -> Option<FunctionNarrative> {
let heading = markdown.headings.iter().find(|heading| {
heading.function == Some(heading.node)
&& markdown.nodes[heading.node].span == analysis.heading_span
})?;
let heading = markdown.function_segment(&analysis.id)?;
let function = heading.node;
let mut carriers: Vec<_> = markdown
.carriers