Fix up misnamed get_enum/has_enum.

This commit is contained in:
Mike Auty
2019-06-30 13:35:13 +01:00
parent ef28a9b733
commit 5e37080c14
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -201,10 +201,10 @@ class Module(interfaces.context.ModuleInterface):
get_symbol = get_module_wrapper('get_symbol')
get_type = get_module_wrapper('get_type')
get_enum = get_module_wrapper('get_enum')
get_enumeration = get_module_wrapper('get_enumeration')
has_symbol = get_module_wrapper('has_symbol')
has_type = get_module_wrapper('has_type')
has_enum = get_module_wrapper('has_enum')
has_enumeration = get_module_wrapper('has_enumeration')
class SizedModule(Module):
+2 -2
View File
@@ -153,7 +153,7 @@ class ModuleInterface(metaclass = ABCMeta):
def get_symbol(self, name: str) -> 'interfaces.symbols.SymbolInterface':
"""Returns a symbol from the module"""
def get_enum(self, name: str) -> 'interfaces.symbols.SymbolInterface':
def get_enumeration(self, name: str) -> 'interfaces.symbols.SymbolInterface':
"""Returns an enumeration from the module"""
def has_type(self, name: str) -> bool:
@@ -162,5 +162,5 @@ class ModuleInterface(metaclass = ABCMeta):
def has_symbol(self, name: str) -> bool:
"""Determines whether a symbol is present in the module"""
def has_enum(self, name: str) -> bool:
def has_enumeration(self, name: str) -> bool:
"""Determines whether an enumeration is present in the module"""