Allows us to surround a parser by `with_doc_comment` and for a doc comment to be added to the result, as long as the result implements `SupportsDocComment`. (In retrospect, we could manage without it, though probably not worth the effort to remove it. We could also use it to also support Span items.)
| 157 | /// (In retrospect, we could manage without it, though probably not worth the |
| 158 | /// effort to remove it. We could also use it to also support Span items.) |
| 159 | trait SupportsDocComment { |
| 160 | fn with_doc_comment(self, doc_comment: Option<String>) -> Self; |
| 161 | } |
| 162 | |
| 163 | /// Parse a sequence, allowing commas and new lines between items. Doesn't |
| 164 | /// include the surrounding delimiters. |