Fix error nodes
This commit is contained in:
@ -46,6 +46,11 @@ import net.sourceforge.pmd.lang.ast.impl.antlr4.*;
|
||||
public SwiftTerminalNode createPmdTerminal(ParserRuleContext parent, Token t) {
|
||||
return new SwiftTerminalNode(t);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SwiftTerminalNode createPmdError(ParserRuleContext parent, Token t) {
|
||||
return new SwiftErrorNode(t);
|
||||
}
|
||||
}
|
||||
|
||||
options {
|
||||
|
@ -0,0 +1,17 @@
|
||||
/*
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.swift.ast;
|
||||
|
||||
import org.antlr.v4.runtime.Token;
|
||||
|
||||
import net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrErrorNode;
|
||||
|
||||
public final class SwiftErrorNode extends BaseAntlrErrorNode<SwiftNode> implements SwiftNode {
|
||||
|
||||
SwiftErrorNode(Token token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user