Skip to content

Commit

Permalink
Python bindings: expose TimingControl visitor (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdp2110 committed Jun 16, 2023
1 parent a9ff280 commit 385e8e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bindings/python/ast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ void registerAST(py::module_& m) {
.def_readonly("syntax", &TimingControl::syntax)
.def_readonly("sourceRange", &TimingControl::sourceRange)
.def_property_readonly("bad", &TimingControl::bad)
.def("visit", &pyVisit<TimingControl>, "f"_a, PyVisitor::doc)
.def("__repr__", [](const TimingControl& self) {
return fmt::format("TimingControl(TimingControlKind.{})", toString(self.kind));
});
Expand Down

0 comments on commit 385e8e3

Please sign in to comment.