IDEA-97264 IntelliLang support for "Path to File" language

This commit is contained in:
Dmitry Avdeev
2013-08-14 12:42:38 +04:00
parent fdf190920b
commit dde009264a
2 changed files with 1 additions and 1 deletions
@@ -91,7 +91,6 @@ public class ReferenceInjectionTest extends LightPlatformCodeInsightFixtureTestC
PsiElement element = myFixture.getFile().findElementAt(myFixture.getCaretOffset());
element = PsiTreeUtil.getParentOfType(element, PsiLanguageInjectionHost.class);
assertNotNull(element);
element.getReferences();
return InjectedReferencesContributor.getInjectedReferences(element);
}
@@ -52,6 +52,7 @@ public class InjectedReferencesContributor extends PsiReferenceContributor {
@Nullable
public static PsiReference[] getInjectedReferences(PsiElement element) {
element.getReferences();
return element.getUserData(INJECTED_REFERENCES);
}