diff options
Diffstat (limited to 'src/syntax')
| -rw-r--r-- | src/syntax/node.rs | 1 | ||||
| -rw-r--r-- | src/syntax/source.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/syntax/node.rs b/src/syntax/node.rs index 3c9bc049..d2adc13a 100644 --- a/src/syntax/node.rs +++ b/src/syntax/node.rs @@ -190,6 +190,7 @@ impl SyntaxNode { } /// Assign spans to each node. + #[tracing::instrument(skip_all)] pub(super) fn numberize( &mut self, id: SourceId, diff --git a/src/syntax/source.rs b/src/syntax/source.rs index a51da301..2a474b17 100644 --- a/src/syntax/source.rs +++ b/src/syntax/source.rs @@ -28,6 +28,7 @@ pub struct Source { impl Source { /// Create a new source file. + #[tracing::instrument(skip_all)] pub fn new(id: SourceId, path: &Path, text: String) -> Self { let mut root = parse(&text); root.numberize(id, Span::FULL).unwrap(); |
