Lines Matching defs:PyDiagnosticHandler
778 PyDiagnosticHandler *pyHandler =
779 new PyDiagnosticHandler(get(), std::move(callback));
784 // In these C callbacks, the userData is a PyDiagnosticHandler* that is
792 auto *pyHandler = static_cast<PyDiagnosticHandler *>(userData);
811 auto *pyHandler = static_cast<PyDiagnosticHandler *>(userData);
995 PyDiagnosticHandler::PyDiagnosticHandler(MlirContext context,
999 PyDiagnosticHandler::~PyDiagnosticHandler() = default;
1001 void PyDiagnosticHandler::detach() {
2721 nb::class_<PyDiagnosticHandler>(m, "DiagnosticHandler")
2722 .def("detach", &PyDiagnosticHandler::detach)
2723 .def_prop_ro("attached", &PyDiagnosticHandler::isAttached)
2724 .def_prop_ro("had_error", &PyDiagnosticHandler::getHadError)
2725 .def("__enter__", &PyDiagnosticHandler::contextEnter)
2726 .def("__exit__", &PyDiagnosticHandler::contextExit,