Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Commit aa0fe13

Browse files
platinumazureJamesHenry
authored andcommitted
Fix: Re-expose parse method (fixes #519) (#521)
1 parent 655359f commit aa0fe13

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

parser.js

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ exports.parseForESLint = function parseForESLint(code, options) {
3232
return { ast };
3333
};
3434

35+
exports.parse = function(code, options) {
36+
return this.parseForESLint(code, options).ast;
37+
};
38+
3539
// Deep copy.
3640
/* istanbul ignore next */
3741
exports.Syntax = (function() {

0 commit comments

Comments
 (0)