Search in sources :

Example 1 with ASTDelegatePsiElement

use of com.intellij.extapi.psi.ASTDelegatePsiElement in project intellij-community by JetBrains.

the class CompositeElement method subtreeChanged.

public void subtreeChanged() {
    CompositeElement compositeElement = this;
    while (compositeElement != null) {
        compositeElement.clearCaches();
        if (!(compositeElement instanceof PsiElement)) {
            final PsiElement psi = compositeElement.myWrapper;
            if (psi instanceof ASTDelegatePsiElement) {
                ((ASTDelegatePsiElement) psi).subtreeChanged();
            } else if (psi instanceof PsiFile) {
                ((PsiFile) psi).subtreeChanged();
            }
        }
        compositeElement = compositeElement.getTreeParent();
    }
}
Also used : ASTDelegatePsiElement(com.intellij.extapi.psi.ASTDelegatePsiElement) PsiFile(com.intellij.psi.PsiFile) PsiElement(com.intellij.psi.PsiElement) ASTDelegatePsiElement(com.intellij.extapi.psi.ASTDelegatePsiElement)

Aggregations

ASTDelegatePsiElement (com.intellij.extapi.psi.ASTDelegatePsiElement)1 PsiElement (com.intellij.psi.PsiElement)1 PsiFile (com.intellij.psi.PsiFile)1