summaryrefslogtreecommitdiff
path: root/src/source.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-10-17 16:47:07 +0200
committerLaurenz <laurmaedje@gmail.com>2022-10-17 17:11:01 +0200
commit4fd031a256b2ecfe524859d5599fafb386395572 (patch)
tree14787137b5188666a2133525d10ac0b72357551c /src/source.rs
parent54b38c479060ac06213cb311f22b84bccdf88932 (diff)
More spans in AST
Diffstat (limited to 'src/source.rs')
-rw-r--r--src/source.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/source.rs b/src/source.rs
index 8e22c01d..69e72d6b 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::MarkupNode;
+use crate::syntax::ast::Markup;
use crate::syntax::{Span, SyntaxNode};
use crate::util::{PathExt, StrExt};
@@ -66,7 +66,7 @@ impl Source {
}
/// The root node of the file's typed abstract syntax tree.
- pub fn ast(&self) -> SourceResult<MarkupNode> {
+ pub fn ast(&self) -> SourceResult<Markup> {
let errors = self.root.errors();
if errors.is_empty() {
Ok(self.root.cast().expect("root node must be markup"))