Merge branch 'generic-visitor-js' into 7.0.x

This commit is contained in:
Clément Fournier
2020-08-23 16:44:27 +02:00
59 changed files with 326 additions and 270 deletions

View File

@ -16,7 +16,8 @@ public abstract class AstVisitorBase<P, R> implements AstVisitor<P, R> {
/**
* Visit the children. By default the data parameter is passed unchanged
* to all descendants, and this returns null .
* to all descendants, and null is returned. Override this method to customize
* this behavior.
*
* @param node Node whose children should be visited
* @param data Parameter of the visit

View File

@ -12,7 +12,7 @@ public final class ASTArrayComprehension extends AbstractEcmascriptNode<ArrayCom
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -12,7 +12,7 @@ public final class ASTArrayComprehensionLoop extends AbstractEcmascriptNode<Arra
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -15,7 +15,7 @@ public final class ASTArrayLiteral extends AbstractEcmascriptNode<ArrayLiteral>
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -12,7 +12,7 @@ public final class ASTAssignment extends AbstractInfixEcmascriptNode<Assignment>
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}
}

View File

@ -20,7 +20,7 @@ public final class ASTAstRoot extends AbstractEcmascriptNode<AstRoot> implements
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -12,7 +12,7 @@ public final class ASTBlock extends AbstractEcmascriptNode<Block> {
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}
}

View File

@ -13,7 +13,7 @@ public final class ASTBreakStatement extends AbstractEcmascriptNode<BreakStateme
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -12,7 +12,7 @@ public final class ASTCatchClause extends AbstractEcmascriptNode<CatchClause> {
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -12,7 +12,7 @@ public final class ASTComment extends AbstractEcmascriptNode<Comment> {
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -12,7 +12,7 @@ public final class ASTConditionalExpression extends AbstractEcmascriptNode<Condi
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -13,7 +13,7 @@ public final class ASTContinueStatement extends AbstractEcmascriptNode<ContinueS
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -12,7 +12,7 @@ public final class ASTDoLoop extends AbstractEcmascriptNode<DoLoop> {
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -12,7 +12,7 @@ public final class ASTElementGet extends AbstractEcmascriptNode<ElementGet> {
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -12,7 +12,7 @@ public final class ASTEmptyExpression extends AbstractEcmascriptNode<EmptyExpres
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}
}

View File

@ -12,7 +12,7 @@ public final class ASTEmptyStatement extends AbstractEcmascriptNode<EmptyStateme
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}
}

View File

@ -13,7 +13,7 @@ public final class ASTExpressionStatement extends AbstractEcmascriptNode<Express
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -12,7 +12,7 @@ public final class ASTForInLoop extends AbstractEcmascriptNode<ForInLoop> {
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -12,7 +12,7 @@ public final class ASTForLoop extends AbstractEcmascriptNode<ForLoop> {
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -12,7 +12,7 @@ public final class ASTFunctionCall extends AbstractEcmascriptNode<FunctionCall>
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -13,7 +13,7 @@ public final class ASTFunctionNode extends AbstractEcmascriptNode<FunctionNode>
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -12,7 +12,7 @@ public final class ASTIfStatement extends AbstractEcmascriptNode<IfStatement> {
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -12,7 +12,7 @@ public final class ASTInfixExpression extends AbstractInfixEcmascriptNode<InfixE
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}
}

View File

@ -16,7 +16,7 @@ public final class ASTKeywordLiteral extends AbstractEcmascriptNode<KeywordLiter
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -13,7 +13,7 @@ public final class ASTLabel extends AbstractEcmascriptNode<Label> {
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}
}

View File

@ -12,7 +12,7 @@ public final class ASTLabeledStatement extends AbstractEcmascriptNode<LabeledSta
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -12,7 +12,7 @@ public final class ASTLetNode extends AbstractEcmascriptNode<LetNode> {
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -13,7 +13,7 @@ public final class ASTName extends AbstractEcmascriptNode<Name> {
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -12,7 +12,7 @@ public final class ASTNewExpression extends AbstractEcmascriptNode<NewExpression
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

View File

@ -13,7 +13,7 @@ public final class ASTNumberLiteral extends AbstractEcmascriptNode<NumberLiteral
}
@Override
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
protected <P, R> R acceptJsVisitor(EcmascriptVisitor<? super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}

Some files were not shown because too many files have changed in this diff Show More