Commit 80fc2ec8 authored by yhirano@chromium.org's avatar yhirano@chromium.org

Preparation of Promise<T> support in the Web IDL parser

We are about to support Promise<T> syntax in the Web IDL parser. As it is
specified in the Web IDL spec, I would like to implement it in
tools/idl_parser. This CL is a preparation for the change in chromium side,
in order not to break the existing behavior when the change lands.

BUG=421539

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183849 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 8466645a
...@@ -789,6 +789,8 @@ def type_node_inner_to_type(node): ...@@ -789,6 +789,8 @@ def type_node_inner_to_type(node):
return sequence_node_to_type(node) return sequence_node_to_type(node)
elif node_class == 'UnionType': elif node_class == 'UnionType':
return union_type_node_to_idl_union_type(node) return union_type_node_to_idl_union_type(node)
elif node_class == 'Promise':
return IdlType('Promise')
raise ValueError('Unrecognized node class: %s' % node_class) raise ValueError('Unrecognized node class: %s' % node_class)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment