Skip to content
Snippets Groups Projects
Commit 381bd68b authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Trigger magic

parent cb78f5f8
No related merge requests found
Pipeline #22324 failed with stage
in 2 minutes and 47 seconds
...@@ -400,10 +400,23 @@ class CustomFunctionCall(JinjaCppFile): ...@@ -400,10 +400,23 @@ class CustomFunctionCall(JinjaCppFile):
def symbols_defined(self): def symbols_defined(self):
return set(self.ast_dict.fields_accessed) return set(self.ast_dict.fields_accessed)
@property
def fields_accessed(self):
return [f.name for f in self.ast_dict.fields_accessed]
@property @property
def function_name(self): def function_name(self):
return self.ast_dict.function_name return self.ast_dict.function_name
@property @property
def undefined_symbols(self): def undefined_symbols(self):
return set(self.ast_dict.args) return set(self.ast_dict.args)
def subs(self, subs_dict):
self.ast_dict.args = list(map(lambda x: x.subs(subs_dict), self.ast_dict.args))
def atoms(self, types=None):
if types:
return set(a for a in self.args if isinstance(a, types))
else:
return set(self.args)
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