Commit adea548f authored by Yuki Shiino's avatar Yuki Shiino Committed by Commit Bot

IDL compiler: Support indexing access to OverloadGroup

Bug: 839389
Change-Id: Ia31c0b27ee034e697551d170a961b131cf8415e1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1939989Reviewed-by: default avatarHitoshi Yoshida <peria@chromium.org>
Commit-Queue: Yuki Shiino <yukishiino@chromium.org>
Cr-Commit-Position: refs/heads/master@{#719596}
parent c800a79f
......@@ -142,6 +142,9 @@ class OverloadGroup(WithIdentifier):
function.set_overload_group(self)
self._is_static = functions[0].is_static
def __getitem__(self, index):
return self._functions[index]
def __iter__(self):
return iter(self._functions)
......
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