idl_parser: Support annotated types in Typedef and NonAnyType

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

This CL enables types to be annotated types in Typedef and NonAnyType.

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: I3f04365eca44a646a92796028479744d9bd4dce8
Commit-Queue: Lisa Suzuki <>
Reviewed-by: Kentaro Hara <>
Reviewed-by: Yuki Shiino <>
Reviewed-by: Kenichi Ishibashi <>
Reviewed-by: Hitoshi Yoshida <>
Cr-Original-Commit-Position: refs/heads/master@{#502815}
Cr-Mirrored-Commit: 16b6872f38d70af4103b23cd54b3ef8c7697b341
4 files changed