Skip to content

Commit

Permalink
Moved generated element types to the parser package
Browse files Browse the repository at this point in the history
This is necessary to migrate to the grammar-kit plugin 2022.3.2.2
It seems that it is wiping out lexer directory for some reason.
  • Loading branch information
hurricup committed Apr 5, 2024
1 parent 397886b commit 2d1727f
Show file tree
Hide file tree
Showing 457 changed files with 481 additions and 480 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import java.util.ArrayList;
import java.util.List;

import static com.perl5.lang.perl.lexer.PerlElementTypesGenerated.FAT_COMMA;
import static com.perl5.lang.perl.parser.PerlElementTypesGenerated.FAT_COMMA;


public class HTMLMasonArgsBlockImpl extends HTMLMasonStubBasedElement<HTMLMasonArgsBlockStub> implements HTMLMasonArgsBlock {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import org.jetbrains.annotations.NotNull;

import static com.perl5.lang.htmlmason.elementType.HTMLMasonElementTypes.*;
import static com.perl5.lang.perl.lexer.PerlElementTypesGenerated.*;
import static com.perl5.lang.perl.parser.PerlElementTypesGenerated.*;


@SuppressWarnings("Duplicates")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@

import java.util.List;

import static com.perl5.lang.perl.lexer.PerlElementTypesGenerated.COMMA;
import static com.perl5.lang.perl.lexer.PerlElementTypesGenerated.FAT_COMMA;
import static com.perl5.lang.perl.parser.PerlElementTypesGenerated.COMMA;
import static com.perl5.lang.perl.parser.PerlElementTypesGenerated.FAT_COMMA;


public class MasonFlagsStatementImpl extends PsiPerlStatementImpl implements MasonFlagsStatement {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import java.util.HashMap;
import java.util.Map;

import static com.perl5.lang.perl.lexer.PerlElementTypesGenerated.NAMESPACE_CONTENT;
import static com.perl5.lang.perl.parser.PerlElementTypesGenerated.NAMESPACE_CONTENT;


public class Mason2ParserImpl extends PerlParserImpl implements MasonParser {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import com.intellij.lang.WhitespacesBinders;
import com.intellij.psi.tree.IElementType;

import static com.perl5.lang.perl.lexer.PerlElementTypesGenerated.*;
import static com.perl5.lang.perl.parser.PerlElementTypesGenerated.*;


public class Mason2TemplatingParserImpl extends Mason2ParserImpl {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import com.maddyhome.idea.copyright.CopyrightProfile;
import com.maddyhome.idea.copyright.options.LanguageOptions;
import com.maddyhome.idea.copyright.psi.UpdatePsiFileCopyright;
import com.perl5.lang.perl.lexer.PerlElementTypesGenerated;
import com.perl5.lang.perl.parser.PerlElementTypesGenerated;
import com.perl5.lang.pod.PodLanguage;
import com.perl5.lang.pod.idea.completion.PodTitleCompletionProvider;
import com.perl5.lang.pod.parser.psi.PodRecursiveVisitor;
Expand All @@ -45,7 +45,7 @@
import java.util.regex.Pattern;

import static com.perl5.lang.pod.lexer.PodElementTypes.POD_OUTER;
import static com.perl5.lang.pod.lexer.PodElementTypesGenerated.CUT_SECTION;
import static com.perl5.lang.pod.parser.PodElementTypesGenerated.CUT_SECTION;

class UpdatePerlPackageFileCopyright extends UpdatePsiFileCopyright {
private final @NotNull CopyrightProfile myOptions;
Expand Down
2 changes: 1 addition & 1 deletion plugin/core/grammar/Perl5.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{
generate=[psi-factory="no"]
parserImports=[ "static com.intellij.lang.WhitespacesBinders.*" ]
elementTypeHolderClass="com.perl5.lang.perl.lexer.PerlElementTypesGenerated"
elementTypeHolderClass="com.perl5.lang.perl.parser.PerlElementTypesGenerated"
parserClass="com.perl5.lang.perl.parser.PerlParserGenerated"
extends="com.perl5.lang.perl.psi.impl.PerlCompositeElementImpl"

Expand Down
2 changes: 1 addition & 1 deletion plugin/core/grammar/Pod.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{
generate=[psi-factory="no"]
psiVisitorName="PodVisitorGenerated"
elementTypeHolderClass="com.perl5.lang.pod.lexer.PodElementTypesGenerated"
elementTypeHolderClass="com.perl5.lang.pod.parser.PodElementTypesGenerated"

elementTypeFactory="com.perl5.lang.pod.elementTypes.PodElementTypeFactory.getElementType"
tokenTypeFactory="com.perl5.lang.pod.elementTypes.PodElementTypeFactory.getTokenType"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2d1727f

Please sign in to comment.