Track whether module declarations are inline (fixes #12590)

This commit is contained in:
Tinco Andringa 2018-07-11 15:19:32 +02:00
parent b8d45da274
commit c3afb16e16
9 changed files with 114 additions and 10 deletions

View file

@ -1841,6 +1841,8 @@ pub struct Mod {
/// to the last token in the external file.
pub inner: Span,
pub items: Vec<P<Item>>,
/// For `mod foo;` inline is false, for `mod foo { .. }` it is true.
pub inline: bool,
}
/// Foreign module declaration.