Skip to content

Commit aa0fe13

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

parser.js

Lines changed: 4 additions & 0 deletions
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)