mirror of https://github.com/m-labs/artiq.git
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 @.
This commit is contained in:
parent
0755aa38ff
commit
7b3ace2e30
|
@ -1017,7 +1017,7 @@ class Inferencer(algorithm.Visitor):
|
||||||
|
|
||||||
diag = diagnostic.Diagnostic("error",
|
diag = diagnostic.Diagnostic("error",
|
||||||
"decorators are not supported", {},
|
"decorators are not supported", {},
|
||||||
node.at_locs[index], [decorator.loc])
|
node.at_locs[index], [])
|
||||||
self.engine.process(diag)
|
self.engine.process(diag)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue