Don't add functions as possible argument types

This commit is contained in:
Lonami Exo 2018-10-15 21:12:10 +02:00
parent bb180a1db8
commit 8f04ec820f

View File

@ -71,8 +71,9 @@ def parse_tl(file_path, layer, invalid_bot_methods=None):
result = _from_line(line, is_function, layer=layer) result = _from_line(line, is_function, layer=layer)
result.bot_usable = result.fullname not in invalid_bot_methods result.bot_usable = result.fullname not in invalid_bot_methods
obj_all.append(result) obj_all.append(result)
obj_by_name[result.fullname] = result if not result.is_function:
obj_by_type[result.result].append(result) obj_by_name[result.fullname] = result
obj_by_type[result.result].append(result)
except ValueError as e: except ValueError as e:
if 'vector#1cb5c415' not in str(e): if 'vector#1cb5c415' not in str(e):
raise raise