Skip to content

Commit

Permalink
more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Nov 25, 2024
1 parent b86dd41 commit 2092351
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/ast/spans.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ fn union_spans<I: Iterator<Item = Span>>(iter: I) -> Span {
.unwrap_or(Span::empty())
}

/// A trait for AST nodes that have a source span for use in diagnostics.
/// Trait for AST nodes that have a source location information.
///
/// Note: Source spans are likely not currently entirely accurate. They may
/// 1. Be missing keywords or other tokens.
/// # Note:
///
/// Source spans are not currently entirely accurate. They may
/// 1. Be missing keywords or other tokens
/// 2. Not have span information at all, in which case they return [`Span::empty()`].
///
/// See [this ticket] for more information.
/// See [this ticket] for more information and status.
///
/// Note Some impl blocks may contain doc comments with information
/// on which nodes are missing spans.
Expand Down

0 comments on commit 2092351

Please sign in to comment.