From 2ce727fc958d9b83f7d2f46f73e4f295594b48a6 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 22 Nov 2022 14:40:56 +0100 Subject: Make inner node and node data private --- src/syntax/source.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/syntax/source.rs') 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. /// -- cgit v1.2.3