summaryrefslogtreecommitdiff
path: root/src/syntax/source.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-22 14:40:56 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-22 14:40:56 +0100
commit2ce727fc958d9b83f7d2f46f73e4f295594b48a6 (patch)
tree1f4fc5be25b61a8a633311ff7ec892cacdffe288 /src/syntax/source.rs
parentdd9c323941260a1d08d5113dbefa023713f553da (diff)
Make inner node and node data private
Diffstat (limited to 'src/syntax/source.rs')
-rw-r--r--src/syntax/source.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/syntax/source.rs b/src/syntax/source.rs
index 48b0ff0e..08b52685 100644
--- a/src/syntax/source.rs
+++ b/src/syntax/source.rs
@@ -95,7 +95,7 @@ impl Source {
self.text.get(range)
}
- /// Fully replace the source text and increase the revision number.
+ /// Fully replace the source text.
pub fn replace(&mut self, text: String) {
self.text = Prehashed::new(text);
self.lines = vec![Line { byte_idx: 0, utf16_idx: 0 }];
@@ -105,8 +105,7 @@ impl Source {
self.root = Prehashed::new(root);
}
- /// Edit the source file by replacing the given range and increase the
- /// revision number.
+ /// Edit the source file by replacing the given range.
///
/// Returns the range in the new source that was ultimately reparsed.
///