IntelliLang: move isIgnoredPlace to BaseInjection

GitOrigin-RevId: a3468d8462090890931786f72353856a740d4014
This commit is contained in:
Yuriy Artamonov
2020-01-09 19:08:43 +00:00
committed by intellij-monorepo-bot
parent bdb70a4973
commit 29b72a3b0e
2 changed files with 4 additions and 7 deletions
@@ -147,7 +147,10 @@ public class BaseInjection implements Injection, PersistentStateComponent<Elemen
mySuffix = suffix;
}
@Override
/**
* Determines whether injection to host or concatenation must be ignored. If at least one place in concatenation is ignored then
* the entire concatenation must be ignored and language must not be injected.
*/
public boolean isIgnoredPlace(PsiElement element) {
if (myCompiledIgnorePattern == null) {
return false;
@@ -46,12 +46,6 @@ public interface Injection {
@NotNull
List<TextRange> getInjectedArea(PsiElement element);
/**
* Determines whether injection to host or concatenation must be ignored. If at least one place in concatenation is ignored then
* the entire concatenation must be ignored and language must not be injected.
*/
boolean isIgnoredPlace(PsiElement element);
/**
* Determines how the injection would like being displayed (e.g. attributes
* return a qualified TAG-NAME/@ATT-NAME combination name instead of just