idl_parser: Support annotated types in SetlikeRest

This CL's intention is to adjust to the change of WebIDL's specification.

Before this CL, SetlikeRest's types cannot be annotated.

After this CL, however, SetlikeRest's types can be annotated types.

In order to check if ASTs are dumped correctly and if the code generator works correctly,
I also added pattern match based tests and code generator's tests.

Bug: 714866
Change-Id: I477cb6e0875f1230625b32b74a9a0245b0e3edd3
Reviewed-on: https://chromium-review.googlesource.com/664325
Reviewed-by: Kenichi Ishibashi <bashi@chromium.org>
Reviewed-by: Hitoshi Yoshida <peria@chromium.org>
Commit-Queue: Lisa Suzuki <lisabelle@google.com>
Cr-Original-Commit-Position: refs/heads/master@{#501833}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5dfaafeeff11eac62962578f6cd91d4fef4a1f30
2 files changed