diff options
author | Jisi Liu <jisi.liu@gmail.com> | 2016-08-01 18:47:45 -0700 |
---|---|---|
committer | Jisi Liu <jisi.liu@gmail.com> | 2016-08-02 10:13:05 -0700 |
commit | 3916a0aa999df3da9e8853b5911a5caf43a863fb (patch) | |
tree | ae79f122b9ddd2a4738289a562a0229c91533b7d /src/google/protobuf/compiler/js | |
parent | e8ae137c96444ea313485ed1118c5e43b2099cf1 (diff) | |
download | protobuf-3916a0aa999df3da9e8853b5911a5caf43a863fb.tar.gz protobuf-3916a0aa999df3da9e8853b5911a5caf43a863fb.tar.bz2 protobuf-3916a0aa999df3da9e8853b5911a5caf43a863fb.zip |
Add and fix C++ runtime docs
Diffstat (limited to 'src/google/protobuf/compiler/js')
-rwxr-xr-x | src/google/protobuf/compiler/js/js_generator.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/google/protobuf/compiler/js/js_generator.h b/src/google/protobuf/compiler/js/js_generator.h index 6fd7ca50..056c9897 100755 --- a/src/google/protobuf/compiler/js/js_generator.h +++ b/src/google/protobuf/compiler/js/js_generator.h @@ -28,6 +28,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Generates JavaScript code for a given .proto file. + #ifndef GOOGLE_PROTOBUF_COMPILER_JS_GENERATOR_H__ #define GOOGLE_PROTOBUF_COMPILER_JS_GENERATOR_H__ @@ -90,6 +92,10 @@ struct GeneratorOptions { string* error); }; +// CodeGenerator implementation which generates a JavaScript source file and +// header. If you create your own protocol compiler binary and you want it to +// support JavaScript output, you can do so by registering an instance of this +// CodeGenerator with the CommandLineInterface in your main() function. class LIBPROTOC_EXPORT Generator : public CodeGenerator { public: Generator() {} |