Mojo code generator: simplify how imported types and values are handled.
With this change, there is no need to make deep-copies of types and values from the imported module. Besides, Module.imports are a list of Modules, instead of dictionary objects with redundant information.
This CL also removes some trivial IsXXXField forwarding functions in mojom_js_generator.py
BUG=718614
Review-Url: https://codereview.chromium.org/2864753002
Cr-Commit-Position: refs/heads/master@{#470054}
CrOS-Libchrome-Original-Commit: 8899feb0588fd6fa12ecd3e5807cf55aa778eac7
11 files changed