summaryrefslogtreecommitdiff
path: root/src/syntax
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-02-13 17:44:14 +0100
committerLaurenz <laurmaedje@gmail.com>2023-02-13 17:45:08 +0100
commit17e9805b34562781d514ba6b0df31155c8d39824 (patch)
treec5c4761f59d6ffa57755660f51e88621ddcff689 /src/syntax
parent5233b1c50a4a671fdc38cf0d40868f8c075d9ed7 (diff)
Let `eval` take code instead of markup
Diffstat (limited to 'src/syntax')
-rw-r--r--src/syntax/node.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syntax/node.rs b/src/syntax/node.rs
index 1fdb0a83..e153b0bf 100644
--- a/src/syntax/node.rs
+++ b/src/syntax/node.rs
@@ -175,7 +175,7 @@ impl SyntaxNode {
}
/// Set a synthetic span for the node and all its descendants.
- pub(super) fn synthesize(&mut self, span: Span) {
+ pub(crate) fn synthesize(&mut self, span: Span) {
match &mut self.0 {
Repr::Leaf(leaf) => leaf.span = span,
Repr::Inner(inner) => Arc::make_mut(inner).synthesize(span),