Make the completions possible for Interpreter objects

This commit is contained in:
Dave Halter committed 2019-12-31 18:34:50 +01:00
1 parent b7a8929905
commit 83ce8b1162
5 files changed
+60 -3

No files matched your search

+10
View File
@@ -281,6 +281,16 @@ class CompiledObject(Value):
return CompiledModuleContext(self)
return CompiledContext(self)
@property
def array_type(self):
return self.access_handle.get_array_type()
def get_key_values(self):
return [
create_from_access_path(self.inference_state, k)
for k in self.access_handle.get_key_paths()
]
class CompiledName(AbstractNameDefinition):
def __init__(self, inference_state, parent_context, name):