Commit 5830adc9 authored by Yuki Shiino's avatar Yuki Shiino Committed by Commit Bot

IDL compiler: Minor cleanup (reformat comments, removed pylint comment)

Super minor clean up without a change on code.

Bug: 839389
Change-Id: I6be0c51f65507fadbb416975c3c772668d4d524e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1768842Reviewed-by: default avatarHitoshi Yoshida <peria@chromium.org>
Commit-Queue: Yuki Shiino <yukishiino@chromium.org>
Cr-Commit-Position: refs/heads/master@{#690281}
parent 6a3beaa9
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
# pylint: disable=import-error,print-statement,relative-import
"""Unit tests for extended_attributes.py.""" """Unit tests for extended_attributes.py."""
import unittest import unittest
......
...@@ -10,8 +10,7 @@ class UserDefinedType(WithIdentifier): ...@@ -10,8 +10,7 @@ class UserDefinedType(WithIdentifier):
""" """
UserDefinedType is a common base class of spec-author-defined types. UserDefinedType is a common base class of spec-author-defined types.
Spec-author-defined types are top-level IDL definitions given an unique Spec-author-defined types are top-level IDL definitions given an identifier.
name.
""" """
def __init__(self, identifier): def __init__(self, identifier):
...@@ -19,42 +18,27 @@ class UserDefinedType(WithIdentifier): ...@@ -19,42 +18,27 @@ class UserDefinedType(WithIdentifier):
@property @property
def is_interface(self): def is_interface(self):
""" """Returns True if this is an IDL interface."""
Returns True if |self| represents an Interface.
@return bool
"""
return False return False
@property @property
def is_dictionary(self): def is_dictionary(self):
""" """Returns True if this is an IDL dictionary."""
Returns True if |self| represents a Dictionary.
@return bool
"""
return False return False
@property @property
def is_callback_function(self): def is_callback_function(self):
""" """Returns True if this is an IDL callback function."""
Returns True if |self| represents a CallbackFunction.
@return bool
"""
return False return False
@property @property
def is_callback_interface(self): def is_callback_interface(self):
""" """Returns True if this is an IDL callback interface."""
Returns True if |self| represents a CallbackInterface.
@return bool
"""
return False return False
@property @property
def is_enumeration(self): def is_enumeration(self):
""" """Returns True if this is an IDL enumeration."""
Returns True if |self| represents an Enumeration.
@return bool
"""
return False return False
......
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