SBDeclaration.i revision 49306144bb37f0b3423d992f17cdcc24703374b4
1//===-- SWIG Interface for SBDeclaration --------------------------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9 10namespace lldb { 11 12 %feature("docstring", 13 "Specifies an association with a line and column for a variable." 14 ) SBDeclaration; 15 class SBDeclaration 16 { 17 public: 18 19 SBDeclaration (); 20 21 SBDeclaration (const lldb::SBDeclaration &rhs); 22 23 ~SBDeclaration (); 24 25 bool 26 IsValid () const; 27 28 lldb::SBFileSpec 29 GetFileSpec () const; 30 31 uint32_t 32 GetLine () const; 33 34 uint32_t 35 GetColumn () const; 36 37 bool 38 GetDescription (lldb::SBStream &description); 39 40 void 41 SetFileSpec (lldb::SBFileSpec filespec); 42 43 void 44 SetLine (uint32_t line); 45 46 void 47 SetColumn (uint32_t column); 48 49 %pythoncode %{ 50 __swig_getmethods__["file"] = GetFileSpec 51 if _newclass: file = property(GetFileSpec, None, doc='''A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this line entry.''') 52 53 __swig_getmethods__["line"] = GetLine 54 if _newclass: ling = 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.''') 55 56 __swig_getmethods__["column"] = GetColumn 57 if _newclass: 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.''') 58 %} 59 60 }; 61 62} // namespace lldb 63