From 7b3ace2e30d2fe40552e381815289956b2b33895 Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 18 Dec 2015 22:58:17 +0800 Subject: [PATCH] transforms.inferencer: fix unsupported decorator diagnostic when embedding. decorator.loc points to the quoted object with a synthesized location, and it's not really worth refactoring when we can just point at the @. --- artiq/compiler/transforms/inferencer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/transforms/inferencer.py b/artiq/compiler/transforms/inferencer.py index 21bc7c62a..2e0bd629b 100644 --- a/artiq/compiler/transforms/inferencer.py +++ b/artiq/compiler/transforms/inferencer.py @@ -1017,7 +1017,7 @@ class Inferencer(algorithm.Visitor): diag = diagnostic.Diagnostic("error", "decorators are not supported", {}, - node.at_locs[index], [decorator.loc]) + node.at_locs[index], []) self.engine.process(diag) try: