xref: /freebsd-src/contrib/llvm-project/lldb/bindings/interface/SBDeclarationExtensions.i (revision 5f757f3ff9144b609b3c433dfd370cc6bdc191ad)
106c3fb27SDimitry Andric STRING_EXTENSION_OUTSIDE(SBDeclaration)
206c3fb27SDimitry Andric 
306c3fb27SDimitry Andric %extend lldb::SBDeclaration {
406c3fb27SDimitry Andric #ifdef SWIGPYTHON
506c3fb27SDimitry Andric         %pythoncode %{
6*5f757f3fSDimitry Andric             # operator== is a free function, which swig does not handle, so we inject
7*5f757f3fSDimitry Andric             # our own equality operator here
8*5f757f3fSDimitry Andric             def __eq__(self, other):
9*5f757f3fSDimitry Andric                 return not self.__ne__(other)
10*5f757f3fSDimitry Andric 
1106c3fb27SDimitry Andric             file = property(GetFileSpec, None, doc='''A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this line entry.''')
1206c3fb27SDimitry Andric             line = property(GetLine, None, doc='''A read only property that returns the 1 based line number for this line entry, a return value of zero indicates that no line information is available.''')
1306c3fb27SDimitry Andric             column = property(GetColumn, None, doc='''A read only property that returns the 1 based column number for this line entry, a return value of zero indicates that no column information is available.''')
1406c3fb27SDimitry Andric         %}
1506c3fb27SDimitry Andric #endif
1606c3fb27SDimitry Andric }
17