Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit aa0fe13

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

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

‎parser.js

Copy file name to clipboardExpand all lines: parser.js
+4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.