diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2012-08-19 22:26:15 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2012-08-19 22:26:15 +0000 |
commit | d9ee06b2faddf9382af9fa20d1c34b8d05126417 (patch) | |
tree | 3f6b342931ea1e7c0e456230b76d8471dbdc7111 /bindings | |
parent | b15b15c7f641fd7a71ad94ffe41b162f03d429b0 (diff) |
[cindex.py] Add CachedProperty to CompletionChunk
Suggested by: Francisco Lopes <oblita@gmail.com>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/python/clang/cindex.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bindings/python/clang/cindex.py b/bindings/python/clang/cindex.py index d571b2ade9..0605c2416f 100644 --- a/bindings/python/clang/cindex.py +++ b/bindings/python/clang/cindex.py @@ -1657,16 +1657,16 @@ class CompletionChunk: def __repr__(self): return "{'" + self.spelling + "', " + str(self.kind) + "}" - @property + @CachedProperty def spelling(self): return lib.clang_getCompletionChunkText(self.cs, self.key).spelling - @property + @CachedProperty def kind(self): res = lib.clang_getCompletionChunkKind(self.cs, self.key) return completionChunkKindMap[res] - @property + @CachedProperty def string(self): res = lib.clang_getCompletionChunkCompletionString(self.cs, self.key) |