Lines Matching refs:PyDiagnostic
539 PyDiagnostic *pyDiagnostic = new PyDiagnostic(diagnostic); in attachDiagnosticHandler()
726 void PyDiagnostic::invalidate() { in invalidate()
730 PyDiagnostic *note = py::cast<PyDiagnostic *>(noteObject); in invalidate()
753 void PyDiagnostic::checkValid() { in checkValid()
760 MlirDiagnosticSeverity PyDiagnostic::getSeverity() { in getSeverity()
765 PyLocation PyDiagnostic::getLocation() { in getLocation()
772 py::str PyDiagnostic::getMessage() { in getMessage()
780 py::tuple PyDiagnostic::getNotes() { in getNotes()
788 materializedNotes.value()[i] = PyDiagnostic(noteDiag); in getNotes()
2210 py::class_<PyDiagnostic>(m, "Diagnostic", py::module_local()) in populateIRCore()
2211 .def_property_readonly("severity", &PyDiagnostic::getSeverity) in populateIRCore()
2212 .def_property_readonly("location", &PyDiagnostic::getLocation) in populateIRCore()
2213 .def_property_readonly("message", &PyDiagnostic::getMessage) in populateIRCore()
2214 .def_property_readonly("notes", &PyDiagnostic::getNotes) in populateIRCore()
2215 .def("__str__", [](PyDiagnostic &self) -> py::str { in populateIRCore()