IDL: Propagate errors occurred in interface members
commite041bd99a1d050373dbc58924be258634a65169a
authorbashi <bashi@chromium.org>
Fri, 13 Feb 2015 02:30:43 +0000 (12 18:30 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 13 Feb 2015 02:31:14 +0000 (13 02:31 +0000)
tree253db27a2dc18ac8e28e40c2606d840887268ec1
parent03a5623bd68b1058603ef3b6a3c077a45d5f0ed2
IDL: Propagate errors occurred in interface members

This CL adds an error recovering rule for interface members.
Adding the rule prevents the idl parser enter an infinite loop
when it tries to parse following definition.

interface I {
  readonly double foo;
};

Note that |foo| should be "readonly attribute double foo;".

BUG=457545

Review URL: https://codereview.chromium.org/917413002

Cr-Commit-Position: refs/heads/master@{#316135}
tools/idl_parser/idl_parser.py
tools/idl_parser/test_parser/interface_web.idl