Finish SourceFile grammar

This commit is contained in:
Aleksey Kladov 2020-07-30 00:27:00 +02:00
parent 6636f56e79
commit ede5d17b04
4 changed files with 6 additions and 3 deletions

View file

@ -11,7 +11,9 @@ pub struct SourceFile {
}
impl ast::AttrsOwner for SourceFile {}
impl ast::ModuleItemOwner for SourceFile {}
impl SourceFile {}
impl SourceFile {
pub fn shebang_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![shebang]) }
}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct Attr {
pub(crate) syntax: SyntaxNode,