Sourcify some more

This commit is contained in:
Aleksey Kladov 2019-11-16 00:05:10 +03:00
parent 920848940a
commit bd8af6a413
2 changed files with 23 additions and 13 deletions

View file

@ -226,6 +226,8 @@ impl<N: AstNode> AstId<N> {
#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)]
pub struct Source<T> {
pub file_id: HirFileId,
// FIXME: this stores all kind of things, not only `ast`.
// There should be a better name...
pub ast: T,
}