summaryrefslogtreecommitdiff
path: root/python/src/com/jetbrains/python/psi/stubs/PyDecoratorStubIndex.java
diff options
context:
space:
mode:
Diffstat (limited to 'python/src/com/jetbrains/python/psi/stubs/PyDecoratorStubIndex.java')
-rw-r--r--python/src/com/jetbrains/python/psi/stubs/PyDecoratorStubIndex.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/python/src/com/jetbrains/python/psi/stubs/PyDecoratorStubIndex.java b/python/src/com/jetbrains/python/psi/stubs/PyDecoratorStubIndex.java
new file mode 100644
index 000000000000..0e7ea414cff0
--- /dev/null
+++ b/python/src/com/jetbrains/python/psi/stubs/PyDecoratorStubIndex.java
@@ -0,0 +1,24 @@
+package com.jetbrains.python.psi.stubs;
+
+import com.intellij.psi.stubs.StringStubIndexExtension;
+import com.intellij.psi.stubs.StubIndexKey;
+import com.jetbrains.python.psi.PyDecorator;
+import org.jetbrains.annotations.NotNull;
+
+/**
+ * Python Decorator stub index.
+ * Decorators are indexed by name
+ * @author Ilya.Kazakevich
+ */
+public class PyDecoratorStubIndex extends StringStubIndexExtension<PyDecorator> {
+ /**
+ * Key to search for python decorators
+ */
+ public static final StubIndexKey<String, PyDecorator> KEY = StubIndexKey.createIndexKey("Python.Decorator");
+
+ @NotNull
+ @Override
+ public StubIndexKey<String, PyDecorator> getKey() {
+ return KEY;
+ }
+}