use of com.intellij.structuralsearch.impl.matcher.handlers.DelegatingHandler in project intellij-community by JetBrains.
the class GlobalMatchingVisitor method handleTypedElement.
public final boolean handleTypedElement(final PsiElement typedElement, final PsiElement match) {
MatchingHandler handler = matchContext.getPattern().getHandler(typedElement);
final MatchingHandler initialHandler = handler;
if (handler instanceof DelegatingHandler) {
handler = ((DelegatingHandler) handler).getDelegate();
}
assert handler instanceof SubstitutionHandler : handler != null ? handler.getClass() : "null" + ' ' + (initialHandler != null ? initialHandler.getClass() : "null");
return ((SubstitutionHandler) handler).handle(match, matchContext);
}
Aggregations