Skip to content

Commit

Permalink
kParsingOptions is only for the JS parser
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-michelet committed Jan 25, 2024
1 parent 60b5f31 commit 6004ebc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 9 additions & 1 deletion src/JsSourceParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
import * as meriyah from "meriyah";

// Import Internal Dependencies
import { SourceParser, kParsingOptions } from "./SourceParser.js";
import { SourceParser } from "./SourceParser.js";

// CONSTANTS
const kParsingOptions = {
next: true,
loc: true,
raw: true,
jsx: true
};

export class JsSourceParser extends SourceParser {
/**
Expand Down
8 changes: 0 additions & 8 deletions src/SourceParser.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
// CONSTANTS
export const kParsingOptions = {
next: true,
loc: true,
raw: true,
jsx: true
};

export class SourceParser {
/**
* @param {!string} source
Expand Down

0 comments on commit 6004ebc

Please sign in to comment.