MCPcopy
hub / github.com/xavierd/clang_complete / _get_instantiation

Method _get_instantiation

plugin/clang/cindex.py:115–124  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

113 _data = None
114
115 def _get_instantiation(self):
116 if self._data is None:
117 f, l, c, o = c_object_p(), c_uint(), c_uint(), c_uint()
118 SourceLocation_loc(self, byref(f), byref(l), byref(c), byref(o))
119 if f:
120 f = File(f)
121 else:
122 f = None
123 self._data = (f, int(l.value), int(c.value), int(c.value))
124 return self._data
125
126 @property
127 def file(self):

Callers 4

fileMethod · 0.95
lineMethod · 0.95
columnMethod · 0.95
offsetMethod · 0.95

Calls 1

FileClass · 0.85

Tested by

no test coverage detected