summaryrefslogtreecommitdiff
path: root/src/ide/analyze.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-03-15 12:33:38 +0100
committerLaurenz <laurmaedje@gmail.com>2023-03-15 12:33:38 +0100
commitecb5543985cc0788d9c01e8c2e28d8ca6d8e19b6 (patch)
treefcd6dfaad54d4076ee6d767ceb5f388b3c84225b /src/ide/analyze.rs
parent85678118086b29b3820813411cf382fa283b39f0 (diff)
Node links
Diffstat (limited to 'src/ide/analyze.rs')
-rw-r--r--src/ide/analyze.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ide/analyze.rs b/src/ide/analyze.rs
index 7338ba57..ed868e53 100644
--- a/src/ide/analyze.rs
+++ b/src/ide/analyze.rs
@@ -74,12 +74,11 @@ pub fn analyze_labels(
frames: &[Frame],
) -> (Vec<(Label, Option<EcoString>)>, usize) {
let mut output = vec![];
- let mut introspector = Introspector::new();
+ let introspector = Introspector::new(frames);
let items = &world.library().items;
- introspector.update(frames);
// Labels in the document.
- for node in introspector.iter() {
+ for node in introspector.nodes() {
let Some(label) = node.label() else { continue };
let details = node
.field("caption")