Skip to content

Commit

Permalink
Double package declaration in Visitor-Interface (#30)
Browse files Browse the repository at this point in the history
The generated Visitor-Interface from Visitor.java.ftl has a doubled package declaration when used with the  PARSER_PACKAGE option in the .jjt-file.
I assume it's caused by the missing "elseif" which is for example present in the template for BaseNode, but this would need to be tested, because I know too less about the internas atm.
  • Loading branch information
silasmahler committed Aug 6, 2020
1 parent a7a09ac commit 50010c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/templates/java/Visitor.java.ftl
Expand Up @@ -33,7 +33,7 @@
[#if grammar.parserPackage?has_content]
package ${grammar.parserPackage};
[/#if]
[#if explicitPackageName??]
[#elseif explicitPackageName??]
package ${explicitPackageName};
[#elseif grammar.nodePackage?has_content]
package ${grammar.nodePackage};
Expand Down

0 comments on commit 50010c3

Please sign in to comment.