1 package org.jetbrains.javafx.formatter;
3 import com.intellij.psi.tree.IElementType;
4 import com.intellij.psi.tree.TokenSet;
5 import org.jetbrains.javafx.lang.lexer.JavaFxTokenTypes;
8 * Created by IntelliJ IDEA.
10 * @author Alexey.Ivanov
12 class JavaFxFormattingUtil {
13 private static final TokenSet BRACES =
14 TokenSet.create(JavaFxTokenTypes.LBRACE, JavaFxTokenTypes.RBRACE, JavaFxTokenTypes.LBRACK, JavaFxTokenTypes.RBRACK);
16 private JavaFxFormattingUtil() {
19 public static boolean isBrace(final IElementType childType) {
20 return BRACES.contains(childType);