Process inline comments with DictionaryDeserializer-2 - #868
Conversation
|
Hi guys, |
|
I’ll try and take another look later today. When I went through it the first time it felt like a lot code duplication which isn’t great for maintaining it. Give me a few days. |
|
I haven’t forgotten about this. |
|
Hi @evabalint and @EdwardCooke ,
During serialization we can create these lists and pass theme to the serializer to emit comments accordingly. This is just a suggestion to enrich the library without changing the current behaviuor. Thanks for your useful library, |
Hello again,
I've structured my modifications in separate classes under separate namespace (Core/ParsingComments/)
I've created a common base deserializer, which inherits from the base deserializer:
and I've created two dictionary deserializer classes:
I've created a new value deserializer, called NodeCommentValueDeserializer, which does what the NodeValueDeserializer does, but handles comment-events differently.
All these modifications can be called from the DeserializerBuilders calling its new function: BuildWithCommentsDeserializer.
I know, that I did not answer your most important question, why would anyone process comments like data, but that is how we get our input from our clients :( I'm trying to find a solution for it...
I hope this looks better :) What's your opinion?
And many thanks,