[groovy] parser: rename parser class (IDEA-191728)

To match all other generated parsers, as suggested by gregsh.
This commit is contained in:
Daniil Ovchinnikov
2018-05-24 14:46:46 +03:00
parent 23a49f2cc4
commit d0adb829ef
3 changed files with 4 additions and 18 deletions
@@ -16,7 +16,7 @@ import static com.intellij.lang.parser.GeneratedParserUtilBase.*;
import static org.jetbrains.plugins.groovy.lang.parser.GroovyGeneratedParserUtils.adapt_builder_;
@SuppressWarnings({"SimplifiableIfStatement", "UnusedAssignment"})
public class GroovyBnfParser implements PsiParser, LightPsiParser {
public class GroovyGeneratedParser implements PsiParser, LightPsiParser {
public ASTNode parse(IElementType t, PsiBuilder b) {
parseLight(t, b);
@@ -1,18 +1,4 @@
/*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.groovy.lang.parser;
@@ -41,7 +27,7 @@ import org.jetbrains.plugins.groovy.lang.parser.parsing.util.ParserUtils;
*
* @author ilyas, Dmitry.Krasilschikov
*/
public class GroovyParser extends GroovyBnfParser {
public class GroovyParser extends GroovyGeneratedParser {
public static final TokenSet RCURLY_ONLY = TokenSet.create(GroovyTokenTypes.mRCURLY);
public static final TokenSet CASE_SECTION_END = TokenSet.create(GroovyTokenTypes.kCASE, GroovyTokenTypes.kDEFAULT,
@@ -5,7 +5,7 @@
exact-types = 'elements'
]
parserClass = 'org.jetbrains.plugins.groovy.lang.parser.GroovyBnfParser'
parserClass = 'org.jetbrains.plugins.groovy.lang.parser.GroovyGeneratedParser'
parserUtilClass = 'org.jetbrains.plugins.groovy.lang.parser.GroovyParserUtils'
parserImports = [
'static com.intellij.lang.parser.GeneratedParserUtilBase.*'