Hi all,

I'm the author of protoc-gen-doc, a documentation generator plugin for 
protoc.

I need to be able to get the full (on disk) path of an input file, but 
can't find a way to do so.

The reason I need it is that I need to be able to open the file to do some 
custom parsing of the raw file contents (the info in the descriptors is not 
enough for this particular thing I need to do).

FileDescriptor::name will give me the path relative to the source tree, but 
I can't find a way to get the corresponding SourceTree instance used by the 
compiler, so that I can use e.g. SourceTree::VirtualFileToDiskFile to 
resolve the full path.

Am I stuck completely here? Thankful for any tips.

Cheers,
Elvis

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to