C# Class CompileProtobufToCSharp.ProtoOptions

The proto options.
Show file Open project: mreu/ProtobufLanguageService

Private Properties

Property Type Description
GetOptionsAsComment string
ParseOptions void

Private Methods

Method Description
GetOptionsAsComment ( ) : string

Get the options as code comments.

ParseOptions ( string protoFile ) : void

Get the options from the proto files.

Options in the proto files must be the first lines in the file and must begin with "//#". The options must follow separated by semicolons. Options can be spread over more then one line. The first line that does not begin with "//#" stops reading the options. Unknown options are ignored. NO error or waring is thrown. todo: change this behaviour and display error in Error List Options for the protoc.exe must be entered in one line beginning with "//#protoc=". The text following the = is sent to the proc.exe as paramaeter.