properties: PropertiesListImpl#getParent get parent using stub index
authorDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Tue, 31 May 2016 12:53:31 +0000 (15:53 +0300)
committerDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Tue, 31 May 2016 12:53:31 +0000 (15:53 +0300)
plugins/properties/properties-psi-impl/src/com/intellij/lang/properties/psi/impl/PropertiesListImpl.java

index 4fa9af17903064723512f9f5ad3cfc6d122010c4..a40aae8b900a321e5da6689b06f0200101d44765 100644 (file)
@@ -19,6 +19,7 @@ import com.intellij.lang.ASTNode;
 import com.intellij.lang.properties.parsing.PropertiesElementTypes;
 import com.intellij.lang.properties.psi.PropertiesList;
 import com.intellij.lang.properties.psi.PropertiesListStub;
+import com.intellij.psi.PsiElement;
 
 /**
  * @author max
@@ -35,4 +36,9 @@ public class PropertiesListImpl extends PropertiesStubElementImpl<PropertiesList
   public String toString() {
     return "PropertiesList";
   }
+
+  @Override
+  public PsiElement getParent() {
+    return getParentByStub();
+  }
 }