document what the span of UseTreeKind::Nested is
This commit is contained in:
parent
6579ed89f0
commit
3ce9b2f95b
1 changed files with 7 additions and 0 deletions
|
@ -2733,6 +2733,13 @@ pub enum UseTreeKind {
|
||||||
/// `use prefix` or `use prefix as rename`
|
/// `use prefix` or `use prefix as rename`
|
||||||
Simple(Option<Ident>),
|
Simple(Option<Ident>),
|
||||||
/// `use prefix::{...}`
|
/// `use prefix::{...}`
|
||||||
|
///
|
||||||
|
/// The span represents the braces of the nested group and all elements within:
|
||||||
|
///
|
||||||
|
/// ```text
|
||||||
|
/// use foo::{bar, baz};
|
||||||
|
/// ^^^^^^^^^^
|
||||||
|
/// ```
|
||||||
Nested { items: ThinVec<(UseTree, NodeId)>, span: Span },
|
Nested { items: ThinVec<(UseTree, NodeId)>, span: Span },
|
||||||
/// `use prefix::*`
|
/// `use prefix::*`
|
||||||
Glob,
|
Glob,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue