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

IDL compiler: Remove web_idl.IdlMember

Removes web_idl.IdlMember which is practically unused.

Bug: 839389
Change-Id: Ie06f7dd2f79aeb02d3fd74633a8fd866517fa58e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1768598Reviewed-by: default avatarHitoshi Yoshida <peria@chromium.org>
Commit-Queue: Yuki Shiino <yukishiino@chromium.org>
Cr-Commit-Position: refs/heads/master@{#690282}
parent 5830adc9
......@@ -21,7 +21,6 @@ web_idl/file_io.py
web_idl/function_like.py
web_idl/identifier_ir_map.py
web_idl/idl_compiler.py
web_idl/idl_member.py
web_idl/idl_type.py
web_idl/includes.py
web_idl/interface.py
......
......@@ -31,7 +31,6 @@ web_idl/file_io.py
web_idl/function_like.py
web_idl/identifier_ir_map.py
web_idl/idl_compiler.py
web_idl/idl_member.py
web_idl/idl_type.py
web_idl/includes.py
web_idl/interface.py
......
......@@ -7,10 +7,9 @@ import exceptions
from .composition_parts import WithComponent
from .composition_parts import WithDebugInfo
from .composition_parts import WithOwner
from .idl_member import IdlMember
class Constrcutor(IdlMember):
class Constrcutor(object):
def is_custom(self):
"""
Returns True if this Constructor is defined in the form of
......@@ -44,7 +43,7 @@ class Constrcutor(IdlMember):
raise exceptions.NotImplementedError()
class ConstructorGroup(WithOwner, WithComponent, WithDebugInfo):
class ConstructorGroup(object):
def constructors(self):
"""
Returns a list of constructors
......@@ -53,7 +52,7 @@ class ConstructorGroup(WithOwner, WithComponent, WithDebugInfo):
raise exceptions.NotImplementedError()
class NamedConstructor(WithOwner, WithComponent, WithDebugInfo):
class NamedConstructor(object):
@property
def return_type(self):
"""
......
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from .composition_parts import WithCodeGeneratorInfo
from .composition_parts import WithComponent
from .composition_parts import WithDebugInfo
from .composition_parts import WithExtendedAttributes
from .composition_parts import WithIdentifier
from .composition_parts import WithOwner
class IdlMember(WithIdentifier, WithExtendedAttributes, WithCodeGeneratorInfo,
WithOwner, WithComponent, WithDebugInfo):
"""IdlMember provides common APIs for IDL members; attributes, operations,
constants, dictionary members, etc."""
......@@ -9,7 +9,6 @@ from .composition_parts import WithDebugInfo
from .composition_parts import WithExtendedAttributes
from .constant import Constant
from .identifier_ir_map import IdentifierIRMap
from .idl_member import IdlMember
from .idl_type import IdlType
from .make_copy import make_copy
from .operation import Operation
......@@ -326,7 +325,7 @@ class Setlike(WithCodeGeneratorInfo, WithDebugInfo):
return self._is_readonly
class IndexedPropertyHandler(IdlMember):
class IndexedPropertyHandler(object):
@property
def getter(self):
"""
......@@ -352,7 +351,7 @@ class IndexedPropertyHandler(IdlMember):
assert False, "Not implemented yet."
class NamedPropertyHandler(IdlMember):
class NamedPropertyHandler(object):
@property
def getter(self):
"""
......
......@@ -12,13 +12,11 @@ from .composition_parts import WithExtendedAttributes
from .composition_parts import WithIdentifier
from .composition_parts import WithOwner
from .function_like import FunctionLike
from .idl_member import IdlMember
from .idl_type import IdlType
class Operation(IdlMember):
"""https://heycam.github.io/webidl/#idl-operations
https://www.w3.org/TR/WebIDL-1/#idl-special-operations"""
class Operation(object):
"""https://heycam.github.io/webidl/#idl-operations"""
class IR(FunctionLike.IR, WithExtendedAttributes, WithCodeGeneratorInfo,
WithComponent, WithDebugInfo):
......
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