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

IDL compiler: Fix IDL namespace's Exposure

Bug: 839389
Change-Id: I9db46c2bd8737240c0ead624b46dcb00ac7affd0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1935642Reviewed-by: default avatarHitoshi Yoshida <peria@chromium.org>
Commit-Queue: Yuki Shiino <yukishiino@chromium.org>
Cr-Commit-Position: refs/heads/master@{#719067}
parent 82fec71d
......@@ -174,10 +174,11 @@ class IdlCompiler(object):
default_value=True)
old_irs = self._ir_map.irs_of_kinds(
IRMap.IR.Kind.INTERFACE, IRMap.IR.Kind.INTERFACE_MIXIN,
IRMap.IR.Kind.DICTIONARY, IRMap.IR.Kind.PARTIAL_INTERFACE,
IRMap.IR.Kind.DICTIONARY, IRMap.IR.Kind.INTERFACE,
IRMap.IR.Kind.INTERFACE_MIXIN, IRMap.IR.Kind.NAMESPACE,
IRMap.IR.Kind.PARTIAL_DICTIONARY, IRMap.IR.Kind.PARTIAL_INTERFACE,
IRMap.IR.Kind.PARTIAL_INTERFACE_MIXIN,
IRMap.IR.Kind.PARTIAL_DICTIONARY)
IRMap.IR.Kind.PARTIAL_NAMESPACE)
self._ir_map.move_to_new_phase()
......
......@@ -67,6 +67,14 @@ class Namespace(UserDefinedType, WithExtendedAttributes, WithCodeGeneratorInfo,
self.operations = list(operations)
self.operation_groups = []
def iter_all_members(self):
for attribute in self.attributes:
yield attribute
for constant in self.constants:
yield constant
for operation in self.operations:
yield operation
def __init__(self, ir):
assert isinstance(ir, Namespace.IR)
assert not ir.is_partial
......
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