We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2c288e commit 8612b59Copy full SHA for 8612b59
data_prep/project_context/context_introspector.py
@@ -165,6 +165,9 @@ def _get_function_implementation(self) -> str:
165
def _get_macro_block(self) -> list[str]:
166
"""Queries FI to check macro block around this function."""
167
project = self._benchmark.project
168
+ if not self._benchmark.function_dict:
169
+ return []
170
+
171
source = self._benchmark.function_dict.get('function_filename', '')
172
start = self._benchmark.function_dict.get('source_line_begin', 0)
173
end = self._benchmark.function_dict.get('source_end_begin', 99999)
0 commit comments