mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
[jql] IDEA-295978 Do not trigger JqlElementTypes class loading on parser definition init
GitOrigin-RevId: 1bd36be1f2a6792d933b97071757b255aa9dc6d6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
edb012eb9e
commit
c5ea62473b
@@ -72,7 +72,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
*
|
||||
*/
|
||||
public interface JqlElementTypes {
|
||||
IFileElementType FILE = new IFileElementType(JqlLanguage.INSTANCE);
|
||||
IElementType QUERY = new JqlElementType("QUERY");
|
||||
IElementType OR_CLAUSE = new JqlElementType("OR_CLAUSE");
|
||||
IElementType AND_CLAUSE = new JqlElementType("AND_CLAUSE");
|
||||
|
||||
@@ -5,7 +5,6 @@ import com.intellij.lang.ASTNode;
|
||||
import com.intellij.lang.ParserDefinition;
|
||||
import com.intellij.lang.PsiParser;
|
||||
import com.intellij.lexer.Lexer;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.psi.FileViewProvider;
|
||||
import com.intellij.psi.PsiElement;
|
||||
@@ -18,7 +17,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
* @author Mikhail Golubev
|
||||
*/
|
||||
public class JqlParserDefinition implements ParserDefinition {
|
||||
private static final Logger LOG = Logger.getInstance(JqlParserDefinition.class);
|
||||
private static final IFileElementType FILE_ELEMENT_TYPE = new IFileElementType(JqlLanguage.INSTANCE);
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
@@ -33,7 +32,7 @@ public class JqlParserDefinition implements ParserDefinition {
|
||||
|
||||
@Override
|
||||
public @NotNull IFileElementType getFileNodeType() {
|
||||
return JqlElementTypes.FILE;
|
||||
return FILE_ELEMENT_TYPE;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user