Mojom generator: move Is.*Kind() functions into module.py and use them from all mojom...
commit2ac9852a6fd2864edc9b72a43aa9cbf98865f861
authoryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 12 Aug 2014 03:16:34 +0000 (12 03:16 +0000)
committeryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 12 Aug 2014 03:17:44 +0000 (12 03:17 +0000)
treee999a46d2a07c66b97ad0428d4bb0b80be7c9b57
parent9faa4c61fc4e52ff254eaa9fdff31f953732be67
Mojom generator: move Is.*Kind() functions into module.py and use them from all mojom_.*_generator.py.

This CL also makes the generators handle nullable types correctly. (But validation logic for non-nullable types will be in a separate CL.)

BUG=324170
TEST=None

Review URL: https://codereview.chromium.org/459873003

Cr-Commit-Position: refs/heads/master@{#288893}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288893 0039d316-1c4b-4281-b951-d872f2087c98
mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl
mojo/public/tools/bindings/generators/cpp_templates/struct_macros.tmpl
mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl
mojo/public/tools/bindings/generators/mojom_cpp_generator.py
mojo/public/tools/bindings/generators/mojom_java_generator.py
mojo/public/tools/bindings/generators/mojom_js_generator.py
mojo/public/tools/bindings/pylib/mojom/generate/generator.py
mojo/public/tools/bindings/pylib/mojom/generate/module.py