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
Commit-Queue: Lisa Suzuki <>
Reviewed-by: Yuki Shiino <>
Reviewed-by: Kenichi Ishibashi <>
Reviewed-by: Kentaro Hara <>
Cr-Original-Commit-Position: refs/heads/master@{#501919}
Cr-Mirrored-Commit: cfa96c6592e71c7849851b9ad2ad78bbbc0557ed
2 files changed