diff options
Diffstat (limited to 'src/source.rs')
| -rw-r--r-- | src/source.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/source.rs b/src/source.rs index 509b0a76..5fd85ed9 100644 --- a/src/source.rs +++ b/src/source.rs @@ -149,6 +149,11 @@ impl SourceFile { Self::new(SourceId(0), Path::new(""), src.into()) } + /// The root node of the untyped green tree. + pub fn root(&self) -> &Rc<GreenNode> { + &self.root + } + /// The file's abstract syntax tree. pub fn ast(&self) -> TypResult<Markup> { let red = RedNode::from_root(self.root.clone(), self.id); |
