diff options
author | Aleksey Kladov <[email protected]> | 2020-07-29 23:27:00 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-29 23:46:39 +0100 |
commit | ede5d17b0409f9d5a209aaf16508262dbd2a4489 (patch) | |
tree | 5d1bce4aa147d623035e78b78d4fcc11a4019f70 /crates/ra_syntax | |
parent | 6636f56e79b55f22b88094b7edaed6ec88880500 (diff) |
Finish SourceFile grammar
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r-- | crates/ra_syntax/src/ast/generated/nodes.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs index 3c8bdfcad..dfda79550 100644 --- a/crates/ra_syntax/src/ast/generated/nodes.rs +++ b/crates/ra_syntax/src/ast/generated/nodes.rs | |||
@@ -11,7 +11,9 @@ pub struct SourceFile { | |||
11 | } | 11 | } |
12 | impl ast::AttrsOwner for SourceFile {} | 12 | impl ast::AttrsOwner for SourceFile {} |
13 | impl ast::ModuleItemOwner for SourceFile {} | 13 | impl ast::ModuleItemOwner for SourceFile {} |
14 | impl SourceFile {} | 14 | impl SourceFile { |
15 | pub fn shebang_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![shebang]) } | ||
16 | } | ||
15 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 17 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
16 | pub struct Attr { | 18 | pub struct Attr { |
17 | pub(crate) syntax: SyntaxNode, | 19 | pub(crate) syntax: SyntaxNode, |