diff options
author | Christopher Durham <[email protected]> | 2018-01-28 01:29:14 +0000 |
---|---|---|
committer | Christopher Durham <[email protected]> | 2018-01-28 01:29:14 +0000 |
commit | 50b9012e10d2fa74294547c25642b4a69fed4bda (patch) | |
tree | 6e930103a8b9e74041bf0e6e9f7c7e696d481afd /src/tree/file_builder.rs | |
parent | 6d3caf58ca042cf6b5707822e51619adf511acd0 (diff) |
Add minimal docs to most public symbols
Diffstat (limited to 'src/tree/file_builder.rs')
-rw-r--r-- | src/tree/file_builder.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tree/file_builder.rs b/src/tree/file_builder.rs index 939922cb2..738705f02 100644 --- a/src/tree/file_builder.rs +++ b/src/tree/file_builder.rs | |||
@@ -1,3 +1,6 @@ | |||
1 | // FIXME(CAD97): I don't understand this mod well enough to stub out docs for the public symbols yet | ||
2 | #![allow(missing_docs)] | ||
3 | |||
1 | use {SyntaxKind, TextRange, TextUnit}; | 4 | use {SyntaxKind, TextRange, TextUnit}; |
2 | use super::{File, NodeData, NodeIdx, SyntaxErrorData}; | 5 | use super::{File, NodeData, NodeIdx, SyntaxErrorData}; |
3 | 6 | ||
@@ -8,6 +11,7 @@ pub trait Sink { | |||
8 | fn error(&mut self) -> ErrorBuilder; | 11 | fn error(&mut self) -> ErrorBuilder; |
9 | } | 12 | } |
10 | 13 | ||
14 | #[derive(Debug)] | ||
11 | pub struct FileBuilder { | 15 | pub struct FileBuilder { |
12 | text: String, | 16 | text: String, |
13 | nodes: Vec<NodeData>, | 17 | nodes: Vec<NodeData>, |
@@ -139,6 +143,7 @@ fn grow(left: &mut TextRange, right: TextRange) { | |||
139 | *left = TextRange::from_to(left.start(), right.end()) | 143 | *left = TextRange::from_to(left.start(), right.end()) |
140 | } | 144 | } |
141 | 145 | ||
146 | #[derive(Debug)] | ||
142 | pub struct ErrorBuilder<'f> { | 147 | pub struct ErrorBuilder<'f> { |
143 | message: Option<String>, | 148 | message: Option<String>, |
144 | builder: &'f mut FileBuilder, | 149 | builder: &'f mut FileBuilder, |