implement visitors for null atom
This commit is contained in:
@@ -668,6 +668,15 @@ public class ContextAnalysis extends KlangBaseVisitor<Node> {
|
||||
return n;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Node visitNullAtom(KlangParser.NullAtomContext ctx) {
|
||||
Node n = new NullExpression();
|
||||
n.type = Type.getNullType();
|
||||
n.line = ctx.start.getLine();
|
||||
n.col = ctx.start.getCharPositionInLine();
|
||||
return n;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Node visitFunctionDef(KlangParser.FunctionDefContext ctx) {
|
||||
String name = ctx.funcName.getText();
|
||||
|
||||
Reference in New Issue
Block a user