diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-11-07 23:31:42 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-11-08 11:52:09 +0100 |
| commit | 75fffc1f9b6ef8bf258b2b1845a4ba74a0f5f2c1 (patch) | |
| tree | e8c841d9d9323fc3cff0f584f3267743e809dd25 /src/source.rs | |
| parent | 95866d5fc9ae89a23c5754193c7de5d4fe4873b1 (diff) | |
Fine-grained capturing
Diffstat (limited to 'src/source.rs')
| -rw-r--r-- | src/source.rs | 2 |
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()) |
