mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Finish SourceFile grammar
This commit is contained in:
parent
6636f56e79
commit
ede5d17b04
4 changed files with 6 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue