rename parseData.js to ParseNode.js and export ParseNode as the default

This commit is contained in:
Kevin Barabash
2017-07-13 23:19:26 -04:00
committed by Erik Demaine
parent 361c500a7f
commit 5b6c222cd6
4 changed files with 4 additions and 9 deletions

View File

@@ -15,7 +15,7 @@
* @param {Token=} lastToken last token of the input for this node,
* will default to firstToken if unset
*/
class ParseNode {
export default class ParseNode {
constructor(type, value, mode, firstToken, lastToken) {
this.type = type;
this.value = value;
@@ -27,8 +27,3 @@ class ParseNode {
}
}
}
module.exports = {
ParseNode: ParseNode,
};

View File

@@ -5,7 +5,7 @@ import MacroExpander from "./MacroExpander";
import symbols from "./symbols";
import utils from "./utils";
import { cjkRegex } from "./unicodeRegexes";
import { ParseNode } from "./parseData";
import ParseNode from "./ParseNode";
import ParseError from "./ParseError";
/**

View File

@@ -1,5 +1,5 @@
/* eslint no-constant-condition:0 */
import { ParseNode } from "./parseData";
import ParseNode from "./ParseNode";
import ParseError from "./ParseError";
/**

View File

@@ -1,6 +1,6 @@
import utils from "./utils";
import ParseError from "./ParseError";
import { ParseNode } from "./parseData";
import ParseNode from "./ParseNode";
/* This file contains a list of functions that we parse, identified by
* the calls to defineFunction.