forked from phoedos/pmd
[julia] Ignore generated code in Julia module (#5342)
Merge pull request #5342 from Monits:fix-generated-code-julia
This commit is contained in:
commit
79c0ce0415
@ -55,12 +55,23 @@ This is a {{ site.pmd.release_type }} release.
|
||||
to be generated. It will be removed with no replacement.
|
||||
* {%jdoc gherkin::lang.gherkin.ast.GherkinVisitor %} is deprecated for removal. This class was never intended
|
||||
to be generated. It will be removed with no replacement.
|
||||
* pmd-xml
|
||||
* {%jdoc xml::lang.xml.antlr4.XMLLexer %} is deprecated for removal. Use {%jdoc !!xml::lang.xml.ast.XMLLexer %}
|
||||
instead (note different package `ast` instead of `antlr4`).
|
||||
* pmd-julia
|
||||
* {%jdoc julia::lang.julia.ast.JuliaBaseListener %} is deprecated for removal. This class was never intended to
|
||||
be generated. It will be removed with no replacement.
|
||||
* {%jdoc julia::lang.julia.ast.JuliaBaseVisitor %} is deprecated for removal. This class was never intended to
|
||||
be generated. It will be removed with no replacement.
|
||||
* {%jdoc julia::lang.julia.ast.JuliaListener %} is deprecated for removal. This class was never intended to
|
||||
be generated. It will be removed with no replacement.
|
||||
* {%jdoc julia::lang.julia.ast.JuliaParser %} is deprecated for removal. This class was never intended to
|
||||
be generated. It will be removed with no replacement.
|
||||
* {%jdoc julia::lang.julia.ast.JuliaVisitor %} is deprecated for removal. This class was never intended to
|
||||
be generated. It will be removed with no replacement.
|
||||
* pmd-kotlin
|
||||
* {%jdoc kotlin::lang.kotlin.ast.UnicodeClasses %} is deprecated for removal. This class was never intended to
|
||||
be generated. It will be removed with no replacement.
|
||||
* pmd-xml
|
||||
* {%jdoc xml::lang.xml.antlr4.XMLLexer %} is deprecated for removal. Use {%jdoc !!xml::lang.xml.ast.XMLLexer %}
|
||||
instead (note different package `ast` instead of `antlr4`).
|
||||
|
||||
### ✨ External Contributions
|
||||
* [#5284](https://github.com/pmd/pmd/pull/5284): \[apex] Use case-insensitive input stream to avoid choking on Unicode escape sequences - [Willem A. Hajenius](https://github.com/wahajenius) (@wahajenius)
|
||||
|
@ -18,6 +18,28 @@
|
||||
<artifactId>antlr4-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>antlr-cleanup</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<target>
|
||||
<ant antfile="${antlr4.ant.wrapper}" target="cpd-language">
|
||||
<property name="lang-name" value="Julia" />
|
||||
<property name="lang-id" value="julia" />
|
||||
</ant>
|
||||
</target>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<configuration>
|
||||
|
@ -0,0 +1,277 @@
|
||||
/*
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
// CHECKSTYLE:OFF
|
||||
// Generated from net/sourceforge/pmd/lang/julia/ast/Julia.g4 by ANTLR 4.9.3
|
||||
package net.sourceforge.pmd.lang.julia.ast;
|
||||
|
||||
import org.antlr.v4.runtime.ParserRuleContext;
|
||||
import org.antlr.v4.runtime.tree.ErrorNode;
|
||||
import org.antlr.v4.runtime.tree.TerminalNode;
|
||||
|
||||
/**
|
||||
* This class provides an empty implementation of {@link JuliaListener},
|
||||
* which can be extended to create a listener which only needs to handle a subset
|
||||
* of the available methods.
|
||||
*
|
||||
* @deprecated Since 7.8.0. This class was never intended to be generated. It will be removed with no replacement.
|
||||
*/
|
||||
@SuppressWarnings("PMD.UncommentedEmptyMethodBody")
|
||||
@Deprecated
|
||||
@net.sourceforge.pmd.annotation.Generated("org.antlr.v4.Tool")
|
||||
public class JuliaBaseListener implements JuliaListener {
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterMain(JuliaParser.MainContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitMain(JuliaParser.MainContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterFunctionDefinition(JuliaParser.FunctionDefinitionContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitFunctionDefinition(JuliaParser.FunctionDefinitionContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterFunctionDefinition1(JuliaParser.FunctionDefinition1Context ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitFunctionDefinition1(JuliaParser.FunctionDefinition1Context ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterFunctionDefinition2(JuliaParser.FunctionDefinition2Context ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitFunctionDefinition2(JuliaParser.FunctionDefinition2Context ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterFunctionIdentifier(JuliaParser.FunctionIdentifierContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitFunctionIdentifier(JuliaParser.FunctionIdentifierContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterWhereClause(JuliaParser.WhereClauseContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitWhereClause(JuliaParser.WhereClauseContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterFunctionBody(JuliaParser.FunctionBodyContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitFunctionBody(JuliaParser.FunctionBodyContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterStatement(JuliaParser.StatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitStatement(JuliaParser.StatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterBeginStatement(JuliaParser.BeginStatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitBeginStatement(JuliaParser.BeginStatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterDoStatement(JuliaParser.DoStatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitDoStatement(JuliaParser.DoStatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterForStatement(JuliaParser.ForStatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitForStatement(JuliaParser.ForStatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterIfStatement(JuliaParser.IfStatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitIfStatement(JuliaParser.IfStatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterLetStatement(JuliaParser.LetStatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitLetStatement(JuliaParser.LetStatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterMacroStatement(JuliaParser.MacroStatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitMacroStatement(JuliaParser.MacroStatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterStructStatement(JuliaParser.StructStatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitStructStatement(JuliaParser.StructStatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterTryCatchStatement(JuliaParser.TryCatchStatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitTryCatchStatement(JuliaParser.TryCatchStatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterTypeStatement(JuliaParser.TypeStatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitTypeStatement(JuliaParser.TypeStatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterWhileStatement(JuliaParser.WhileStatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitWhileStatement(JuliaParser.WhileStatementContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterAnyToken(JuliaParser.AnyTokenContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitAnyToken(JuliaParser.AnyTokenContext ctx) { }
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterEveryRule(ParserRuleContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitEveryRule(ParserRuleContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void visitTerminal(TerminalNode node) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void visitErrorNode(ErrorNode node) { }
|
||||
}
|
@ -0,0 +1,156 @@
|
||||
/*
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
// CHECKSTYLE:OFF
|
||||
// Generated from net/sourceforge/pmd/lang/julia/ast/Julia.g4 by ANTLR 4.9.3
|
||||
package net.sourceforge.pmd.lang.julia.ast;
|
||||
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
|
||||
|
||||
/**
|
||||
* This class provides an empty implementation of {@link JuliaVisitor},
|
||||
* which can be extended to create a visitor which only needs to handle a subset
|
||||
* of the available methods.
|
||||
*
|
||||
* @param <T> The return type of the visit operation. Use {@link Void} for
|
||||
* operations with no return type.
|
||||
*
|
||||
* @deprecated Since 7.8.0. This class was never intended to be generated. It will be removed with no replacement.
|
||||
*/
|
||||
@Deprecated
|
||||
@net.sourceforge.pmd.annotation.Generated("org.antlr.v4.Tool")
|
||||
public class JuliaBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements JuliaVisitor<T> {
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitMain(JuliaParser.MainContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitFunctionDefinition(JuliaParser.FunctionDefinitionContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitFunctionDefinition1(JuliaParser.FunctionDefinition1Context ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitFunctionDefinition2(JuliaParser.FunctionDefinition2Context ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitFunctionIdentifier(JuliaParser.FunctionIdentifierContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitWhereClause(JuliaParser.WhereClauseContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitFunctionBody(JuliaParser.FunctionBodyContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitStatement(JuliaParser.StatementContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitBeginStatement(JuliaParser.BeginStatementContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitDoStatement(JuliaParser.DoStatementContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitForStatement(JuliaParser.ForStatementContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitIfStatement(JuliaParser.IfStatementContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitLetStatement(JuliaParser.LetStatementContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitMacroStatement(JuliaParser.MacroStatementContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitStructStatement(JuliaParser.StructStatementContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitTryCatchStatement(JuliaParser.TryCatchStatementContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitTypeStatement(JuliaParser.TypeStatementContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitWhileStatement(JuliaParser.WhileStatementContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitAnyToken(JuliaParser.AnyTokenContext ctx) { return visitChildren(ctx); }
|
||||
}
|
@ -0,0 +1,209 @@
|
||||
/*
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
// CHECKSTYLE:OFF
|
||||
// Generated from net/sourceforge/pmd/lang/julia/ast/Julia.g4 by ANTLR 4.9.3
|
||||
package net.sourceforge.pmd.lang.julia.ast;
|
||||
import org.antlr.v4.runtime.tree.ParseTreeListener;
|
||||
|
||||
/**
|
||||
* This interface defines a complete listener for a parse tree produced by
|
||||
* {@link JuliaParser}.
|
||||
*
|
||||
* @deprecated Since 7.8.0. This class was never intended to be generated. It will be removed with no replacement.
|
||||
*/
|
||||
@Deprecated
|
||||
@net.sourceforge.pmd.annotation.Generated("org.antlr.v4.Tool")
|
||||
public interface JuliaListener extends ParseTreeListener {
|
||||
/**
|
||||
* Enter a parse tree produced by {@link JuliaParser#main}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterMain(JuliaParser.MainContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link JuliaParser#main}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitMain(JuliaParser.MainContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link JuliaParser#functionDefinition}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterFunctionDefinition(JuliaParser.FunctionDefinitionContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link JuliaParser#functionDefinition}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitFunctionDefinition(JuliaParser.FunctionDefinitionContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link JuliaParser#functionDefinition1}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterFunctionDefinition1(JuliaParser.FunctionDefinition1Context ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link JuliaParser#functionDefinition1}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitFunctionDefinition1(JuliaParser.FunctionDefinition1Context ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link JuliaParser#functionDefinition2}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterFunctionDefinition2(JuliaParser.FunctionDefinition2Context ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link JuliaParser#functionDefinition2}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitFunctionDefinition2(JuliaParser.FunctionDefinition2Context ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link JuliaParser#functionIdentifier}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterFunctionIdentifier(JuliaParser.FunctionIdentifierContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link JuliaParser#functionIdentifier}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitFunctionIdentifier(JuliaParser.FunctionIdentifierContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link JuliaParser#whereClause}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterWhereClause(JuliaParser.WhereClauseContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link JuliaParser#whereClause}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitWhereClause(JuliaParser.WhereClauseContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link JuliaParser#functionBody}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterFunctionBody(JuliaParser.FunctionBodyContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link JuliaParser#functionBody}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitFunctionBody(JuliaParser.FunctionBodyContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link JuliaParser#statement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterStatement(JuliaParser.StatementContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link JuliaParser#statement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitStatement(JuliaParser.StatementContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link JuliaParser#beginStatement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterBeginStatement(JuliaParser.BeginStatementContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link JuliaParser#beginStatement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitBeginStatement(JuliaParser.BeginStatementContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link JuliaParser#doStatement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterDoStatement(JuliaParser.DoStatementContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link JuliaParser#doStatement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitDoStatement(JuliaParser.DoStatementContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link JuliaParser#forStatement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterForStatement(JuliaParser.ForStatementContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link JuliaParser#forStatement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitForStatement(JuliaParser.ForStatementContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link JuliaParser#ifStatement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterIfStatement(JuliaParser.IfStatementContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link JuliaParser#ifStatement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitIfStatement(JuliaParser.IfStatementContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link JuliaParser#letStatement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterLetStatement(JuliaParser.LetStatementContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link JuliaParser#letStatement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitLetStatement(JuliaParser.LetStatementContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link JuliaParser#macroStatement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterMacroStatement(JuliaParser.MacroStatementContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link JuliaParser#macroStatement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitMacroStatement(JuliaParser.MacroStatementContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link JuliaParser#structStatement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterStructStatement(JuliaParser.StructStatementContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link JuliaParser#structStatement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitStructStatement(JuliaParser.StructStatementContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link JuliaParser#tryCatchStatement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterTryCatchStatement(JuliaParser.TryCatchStatementContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link JuliaParser#tryCatchStatement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitTryCatchStatement(JuliaParser.TryCatchStatementContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link JuliaParser#typeStatement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterTypeStatement(JuliaParser.TypeStatementContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link JuliaParser#typeStatement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitTypeStatement(JuliaParser.TypeStatementContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link JuliaParser#whileStatement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterWhileStatement(JuliaParser.WhileStatementContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link JuliaParser#whileStatement}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitWhileStatement(JuliaParser.WhileStatementContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link JuliaParser#anyToken}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterAnyToken(JuliaParser.AnyTokenContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link JuliaParser#anyToken}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitAnyToken(JuliaParser.AnyTokenContext ctx);
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,137 @@
|
||||
/*
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
// CHECKSTYLE:OFF
|
||||
// Generated from net/sourceforge/pmd/lang/julia/ast/Julia.g4 by ANTLR 4.9.3
|
||||
package net.sourceforge.pmd.lang.julia.ast;
|
||||
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
|
||||
|
||||
/**
|
||||
* This interface defines a complete generic visitor for a parse tree produced
|
||||
* by {@link JuliaParser}.
|
||||
*
|
||||
* @param <T> The return type of the visit operation. Use {@link Void} for
|
||||
* operations with no return type.
|
||||
*
|
||||
* @deprecated Since 7.8.0. This class was never intended to be generated. It will be removed with no replacement.
|
||||
*/
|
||||
|
||||
@Deprecated
|
||||
@net.sourceforge.pmd.annotation.Generated("org.antlr.v4.Tool")
|
||||
public interface JuliaVisitor<T> extends ParseTreeVisitor<T> {
|
||||
/**
|
||||
* Visit a parse tree produced by {@link JuliaParser#main}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitMain(JuliaParser.MainContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link JuliaParser#functionDefinition}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitFunctionDefinition(JuliaParser.FunctionDefinitionContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link JuliaParser#functionDefinition1}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitFunctionDefinition1(JuliaParser.FunctionDefinition1Context ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link JuliaParser#functionDefinition2}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitFunctionDefinition2(JuliaParser.FunctionDefinition2Context ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link JuliaParser#functionIdentifier}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitFunctionIdentifier(JuliaParser.FunctionIdentifierContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link JuliaParser#whereClause}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitWhereClause(JuliaParser.WhereClauseContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link JuliaParser#functionBody}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitFunctionBody(JuliaParser.FunctionBodyContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link JuliaParser#statement}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitStatement(JuliaParser.StatementContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link JuliaParser#beginStatement}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitBeginStatement(JuliaParser.BeginStatementContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link JuliaParser#doStatement}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitDoStatement(JuliaParser.DoStatementContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link JuliaParser#forStatement}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitForStatement(JuliaParser.ForStatementContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link JuliaParser#ifStatement}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitIfStatement(JuliaParser.IfStatementContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link JuliaParser#letStatement}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitLetStatement(JuliaParser.LetStatementContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link JuliaParser#macroStatement}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitMacroStatement(JuliaParser.MacroStatementContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link JuliaParser#structStatement}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitStructStatement(JuliaParser.StructStatementContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link JuliaParser#tryCatchStatement}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitTryCatchStatement(JuliaParser.TryCatchStatementContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link JuliaParser#typeStatement}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitTypeStatement(JuliaParser.TypeStatementContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link JuliaParser#whileStatement}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitWhileStatement(JuliaParser.WhileStatementContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link JuliaParser#anyToken}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitAnyToken(JuliaParser.AnyTokenContext ctx);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user