Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Generated from Ballerina.g4 by ANTLR 4.5.3
// jshint ignore: start
var antlr4 = require('antlr4/index');
// This class defines a complete generic visitor for a parse tree produced by BallerinaParser.
class BallerinaVisitor extends antlr4.tree.ParseTreeVisitor {
constructor() {
super();
return this;
}
// Visit a parse tree produced by BallerinaParser#compilationUnit.
visitCompilationUnit(ctx) {
}
// Visit a parse tree produced by BallerinaParser#packageDeclaration.
visitPackageDeclaration(ctx) {
}
// Visit a parse tree produced by BallerinaParser#importDeclaration.
visitImportDeclaration(ctx) {
}
// Generated from Ballerina.g4 by ANTLR 4.5.3
// jshint ignore: start
var antlr4 = require('antlr4/index');
// This class defines a complete listener for a parse tree produced by BallerinaParser.
class BallerinaListener extends antlr4.tree.ParseTreeListener {
constructor() {
super();
return this;
}
// Enter a parse tree produced by BallerinaParser#compilationUnit.
enterCompilationUnit(ctx) {
}
// Exit a parse tree produced by BallerinaParser#compilationUnit.
exitCompilationUnit(ctx) {
}
// Enter a parse tree produced by BallerinaParser#packageDeclaration.
enterPackageDeclaration(ctx) {
}
// Generated from Java.g4 by ANTLR 4.5
// jshint ignore: start
var antlr4 = require('antlr4/index');
// This class defines a complete listener for a parse tree produced by JavaParser.
function JavaListener() {
antlr4.tree.ParseTreeListener.call(this);
return this;
}
JavaListener.prototype = Object.create(antlr4.tree.ParseTreeListener.prototype);
JavaListener.prototype.constructor = JavaListener;
// Enter a parse tree produced by JavaParser#compilationUnit.
JavaListener.prototype.enterCompilationUnit = function(ctx) {
};
// Exit a parse tree produced by JavaParser#compilationUnit.
JavaListener.prototype.exitCompilationUnit = function(ctx) {
};
// Enter a parse tree produced by JavaParser#packageDeclaration.
JavaListener.prototype.enterPackageDeclaration = function(ctx) {
};
// Exit a parse tree produced by JavaParser#packageDeclaration.
// Generated from grammars/Python3.g4 by ANTLR 4.7.1
// jshint ignore: start
var antlr4 = require('antlr4/index');
// This class defines a complete listener for a parse tree produced by Python3Parser.
function Python3Listener() {
antlr4.tree.ParseTreeListener.call(this);
return this;
}
Python3Listener.prototype = Object.create(antlr4.tree.ParseTreeListener.prototype);
Python3Listener.prototype.constructor = Python3Listener;
// Enter a parse tree produced by Python3Parser#single_input.
Python3Listener.prototype.enterSingle_input = function(ctx) {
};
// Exit a parse tree produced by Python3Parser#single_input.
Python3Listener.prototype.exitSingle_input = function(ctx) {
};
// Enter a parse tree produced by Python3Parser#file_input.
Python3Listener.prototype.enterFile_input = function(ctx) {
};
// Exit a parse tree produced by Python3Parser#file_input.
// @ts-nocheck
// Generated from sexpression.g4 by ANTLR 4.7.2
// jshint ignore: start
var antlr4 = require('antlr4/index');
// This class defines a complete listener for a parse tree produced by sexpressionParser.
function sexpressionListener() {
antlr4.tree.ParseTreeListener.call(this);
return this;
}
sexpressionListener.prototype = Object.create(antlr4.tree.ParseTreeListener.prototype);
sexpressionListener.prototype.constructor = sexpressionListener;
// Enter a parse tree produced by sexpressionParser#sexpr.
sexpressionListener.prototype.enterSexpr = function(ctx) {
};
// Exit a parse tree produced by sexpressionParser#sexpr.
sexpressionListener.prototype.exitSexpr = function(ctx) {
};
// Enter a parse tree produced by sexpressionParser#item.
sexpressionListener.prototype.enterItem = function(ctx) {
};
// Exit a parse tree produced by sexpressionParser#item.
function VariableDeclarationListener() {
antlr4.tree.ParseTreeListener.call(this);
return this;
}
function LUFileParserListener() {
antlr4.tree.ParseTreeListener.call(this);
return this;
}
function ExprListener() {
antlr4.tree.ParseTreeListener.call(this);
return this;
}
function LuaListener() {
antlr4.tree.ParseTreeListener.call(this);
return this;
}
function SolidityVisitor() {
antlr4.tree.ParseTreeVisitor.call(this);
return this;
}