Skip to content

Commit

Permalink
Moved MessageContextListener to under src.
Browse files Browse the repository at this point in the history
So we can use '@/parser'.
  • Loading branch information
MrCoder committed Nov 8, 2024
1 parent 6bf8a14 commit 4b24d5c
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import antlr4 from "antlr4";
import { MessageContextListener } from "../../../src/positioning/MessageContextListener";
import { RootContext } from "../../../src/parser/index";
import { MessageContextListener } from "./MessageContextListener";
import { RootContext } from "@/parser";

describe("MessageListener", () => {
it("can handle Message and Creation", () => {
Expand All @@ -15,6 +15,7 @@ describe("MessageListener", () => {
const walker = antlr4.tree.ParseTreeWalker.DEFAULT;

const messageContextListener = new MessageContextListener();
// @ts-ignore
walker.walk(messageContextListener, rootContext);

expect(messageContextListener.result()).toStrictEqual([
Expand Down Expand Up @@ -56,6 +57,7 @@ describe("MessageListener", () => {
const walker = antlr4.tree.ParseTreeWalker.DEFAULT;

const messageContextListener = new MessageContextListener();
// @ts-ignore
walker.walk(messageContextListener, rootContext);

expect(messageContextListener.result()).toStrictEqual([
Expand All @@ -75,6 +77,7 @@ describe("MessageListener", () => {
const walker = antlr4.tree.ParseTreeWalker.DEFAULT;

const messageContextListener = new MessageContextListener();
// @ts-ignore
walker.walk(messageContextListener, rootContext);

expect(messageContextListener.result()).toStrictEqual([
Expand Down

0 comments on commit 4b24d5c

Please sign in to comment.