diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-12-20 14:18:29 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-12-21 00:20:24 +0100 |
| commit | 11565a40b315212474f52eb576a9fd92b11f1132 (patch) | |
| tree | c6b7afb35103065bc92b407094ca905bb75cfc73 /src/source.rs | |
| parent | 958f74f77707340f34ee36d09492bdb74523aa2a (diff) | |
Set Rules Episode IX: The Rise of Testing
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 5fd85ed9..432688a0 100644 --- a/src/source.rs +++ b/src/source.rs @@ -149,12 +149,12 @@ impl SourceFile { Self::new(SourceId(0), Path::new(""), src.into()) } - /// The root node of the untyped green tree. + /// The root node of the file's untyped green tree. pub fn root(&self) -> &Rc<GreenNode> { &self.root } - /// The file's abstract syntax tree. + /// The root node of the file's typed abstract syntax tree. pub fn ast(&self) -> TypResult<Markup> { let red = RedNode::from_root(self.root.clone(), self.id); let errors = red.errors(); |
