diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-10-05 12:49:39 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-10-05 12:49:39 +0200 |
| commit | ec884ec1d85f6e1d7868db3e82d572579cc5d345 (patch) | |
| tree | 92819f3a31abd6fdcd6b01adcd367bad344bef13 /src/source.rs | |
| parent | 5a8534a395b500a25cbc46ee15ec031c8231de59 (diff) | |
Refactor syntax module
Diffstat (limited to 'src/source.rs')
| -rw-r--r-- | src/source.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/source.rs b/src/source.rs index 0ada1b04..978b9986 100644 --- a/src/source.rs +++ b/src/source.rs @@ -10,7 +10,7 @@ use unscanny::Scanner; use crate::diag::SourceResult; use crate::parse::{is_newline, parse, reparse}; -use crate::syntax::ast::Markup; +use crate::syntax::ast::MarkupNode; use crate::syntax::{Span, SyntaxNode}; use crate::util::{PathExt, StrExt}; @@ -64,7 +64,7 @@ impl Source { } /// The root node of the file's typed abstract syntax tree. - pub fn ast(&self) -> SourceResult<Markup> { + pub fn ast(&self) -> SourceResult<MarkupNode> { let errors = self.root.errors(); if errors.is_empty() { Ok(self.root.cast().expect("root node must be markup")) |
