diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-06-09 15:23:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-09 13:23:56 +0000 |
| commit | f91cad7d7829556e24d219e55db7da56a966523f (patch) | |
| tree | adce387eb0008198852dd243693512237d3b5f2a /crates/typst-ide/src | |
| parent | cc3e9c86022c5ae5a82938b0b65e3d2dca93b1ed (diff) | |
Pure location assignment (#4352)
Diffstat (limited to 'crates/typst-ide/src')
| -rw-r--r-- | crates/typst-ide/src/analyze.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/typst-ide/src/analyze.rs b/crates/typst-ide/src/analyze.rs index 748970b8..d27ce176 100644 --- a/crates/typst-ide/src/analyze.rs +++ b/crates/typst-ide/src/analyze.rs @@ -3,7 +3,7 @@ use ecow::{eco_vec, EcoString, EcoVec}; use typst::engine::{Engine, Route}; use typst::eval::{Tracer, Vm}; use typst::foundations::{Context, Label, Scopes, Styles, Value}; -use typst::introspection::{Introspector, Locator}; +use typst::introspection::Introspector; use typst::model::{BibliographyElem, Document}; use typst::syntax::{ast, LinkedNode, Span, SyntaxKind}; use typst::World; @@ -58,14 +58,12 @@ pub fn analyze_import(world: &dyn World, source: &LinkedNode) -> Option<Value> { return Some(source); } - let mut locator = Locator::default(); let introspector = Introspector::default(); let mut tracer = Tracer::new(); let engine = Engine { world: world.track(), route: Route::default(), introspector: introspector.track(), - locator: &mut locator, tracer: tracer.track_mut(), }; |
