hoangduit / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
Other
0 stars 0 forks source link

Feature request: convert comments in .proto to cmldoc tags when generating cs with protogen #372

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please include an e-mail address if this might need a dialogue!
==============

What steps will reproduce the problem?
1. execute protogen.exe -o:test.cs -i:"Test.proto"

What is the expected output? 
test.cs conatins  xmldoc comments containg text from comments in .proto

What do you see instead?
no xmldocs

What version of the product are you using? On what operating system?
r622

Please provide any additional information below.

protoc.exe v2.5.0 has --include_source_info option to populate source code 
information including leading and trailing comments. (see Location class for 
details: 
https://code.google.com/p/protobuf/source/browse/trunk/src/google/protobuf/descr
iptor.proto). 

Please find zip with dirty implementation in attach. It processes comments for 
fields ignoring class and enum comments. Also I've added comment field to 
FieldDescriptorProto class to get xml convinient for xslt transforming to cs, 
not sure it is correct.

Original issue reported on code.google.com by Konstant...@gmail.com on 17 Apr 2013 at 11:18

Attachments:

GoogleCodeExporter commented 9 years ago
OK, that's pretty cool; adding to my task list - thanks for taking a look at 
this

Original comment by marc.gravell on 18 Apr 2013 at 6:52