Skip to content

Commit

Permalink
bind two member variables to Diagnostic class to access through python (
Browse files Browse the repository at this point in the history
  • Loading branch information
Badhi authored Dec 11, 2023
1 parent 74f8fcc commit 1917e1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bindings/python/UtilBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ void registerUtil(py::module_& m) {
.def_readonly("code", &Diagnostic::code)
.def_readonly("location", &Diagnostic::location)
.def_readonly("symbol", &Diagnostic::symbol)
.def_readonly("args", &Diagnostic::args)
.def_readonly("ranges", &Diagnostic::ranges)
.def("isError", &Diagnostic::isError)
.def(py::self == py::self)
.def(py::self != py::self);
Expand Down

0 comments on commit 1917e1c

Please sign in to comment.