From 2a4db457ede858e58adbb594c774e68c492b4525 Mon Sep 17 00:00:00 2001 From: Kevin Partington Date: Sat, 29 Sep 2018 10:42:22 -0500 Subject: [PATCH] Fix: Re-expose parse method (fixes #519) --- parser.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/parser.js b/parser.js index 9f12905..c5ed514 100644 --- a/parser.js +++ b/parser.js @@ -32,6 +32,10 @@ exports.parseForESLint = function parseForESLint(code, options) { return { ast }; }; +exports.parse = function(code, options) { + return this.parseForESLint(code, options).ast; +}; + // Deep copy. /* istanbul ignore next */ exports.Syntax = (function() {