idl_parser: Support annotated types in RecordType

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

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

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

In order to check if ASTs are dumped correctly,
I also added pattern match based tests.

Bug: 714866
Change-Id: Icedef75f4e2ef6388fd59192f6b1a3680d01c6f4
Reviewed-on: https://chromium-review.googlesource.com/665638
Commit-Queue: Lisa Suzuki <lisabelle@google.com>
Reviewed-by: Yuki Shiino <yukishiino@chromium.org>
Reviewed-by: Kenichi Ishibashi <bashi@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#501919}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cfa96c6592e71c7849851b9ad2ad78bbbc0557ed
2 files changed