summaryrefslogtreecommitdiff
path: root/src/source.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/source.rs')
-rw-r--r--src/source.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/source.rs b/src/source.rs
index 46d6b84b..713380c5 100644
--- a/src/source.rs
+++ b/src/source.rs
@@ -145,7 +145,7 @@ impl SourceFile {
}
pub fn ast(&self) -> TypResult<Markup> {
- let red = RedNode::new_root(self.root.clone(), self.id);
+ let red = RedNode::from_root(self.root.clone(), self.id);
let errors = red.errors();
if errors.is_empty() {
Ok(red.cast().unwrap())