rename NumberLiteral to NumericLiteral and RegexLiteral to RegExpLiteral

This commit is contained in:
Sebastian McKenzie
2015-11-03 01:19:35 +00:00
parent 9bc95258e6
commit e62a00df50
404 changed files with 622 additions and 573 deletions

View File

@@ -3,7 +3,7 @@ export default function ({ types: t }) {
visitor: {
ReferencedIdentifier(path) {
if (path.node.name === "undefined") {
path.replaceWith(t.unaryExpression("void", t.numberLiteral(0), true));
path.replaceWith(t.unaryExpression("void", t.numericLiteral(0), true));
}
}
}