We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5c645ec + 86af5c6 commit 6f00044Copy full SHA for 6f00044
compiler/functors.py
@@ -337,6 +337,15 @@ def CollectAnnotations(self, predicates):
337
'@NoInject']:
338
continue
339
for rule in rules:
340
+ if ('literal' not in
341
+ rule['head']['record']['field_value'][0]['value']['expression'] or
342
+ 'the_predicate' not in
343
+ rule['head']['record']['field_value'][0]['value']['expression'][
344
+ 'literal']):
345
+ raise FunctorError('This annotation requires predicate symbol '
346
+ 'as the first positional argument.',
347
+ rule['full_text'])
348
+
349
if rule['head']['record']['field_value'][0]['value']['expression'][
350
'literal']['the_predicate']['predicate_name'] in predicates:
351
result.append(rule)
0 commit comments