| 277 | } |
| 278 | |
| 279 | TextDocumentHandle ReadTextDocument(DecodeStream* stream, |
| 280 | std::unique_ptr<BlockConfig> (*ConfigMaker)(TextDocument*)) { |
| 281 | auto value = std::make_shared<TextDocument>(); |
| 282 | if (!ReadBlock(stream, value.get(), ConfigMaker)) { |
| 283 | return nullptr; |
| 284 | }; |
| 285 | return value; |
| 286 | } |
| 287 | |
| 288 | TextDocumentHandle ReadTextDocument(DecodeStream* stream) { |
| 289 | return ReadTextDocument(stream, TextDocumentBlock); |
no test coverage detected