use of com.google.idea.blaze.base.lang.buildfile.psi.Parameter in project intellij by bazelbuild.
the class BuildEnterHandler method skipElement.
private static boolean skipElement(PsiElement element, int offset) {
PsiElement parent = element.getParent();
if (parent == null || parent.getNode() == null || parent instanceof PsiFileSystemItem) {
return false;
}
TextRange childRange = element.getNode().getTextRange();
return childRange.equals(parent.getNode().getTextRange()) || childRange.getStartOffset() == offset && (parent instanceof Argument || parent instanceof Parameter);
}
Aggregations