Skip to content

Commit

Permalink
Revert "feat: --debug prints time it takes to parse a file (eslint#…
Browse files Browse the repository at this point in the history
…15609)"

This reverts commit ef85718.
  • Loading branch information
srijan-deepsource committed May 30, 2022
1 parent 9c8ee30 commit 39daf42
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/linter/linter.js
Expand Up @@ -800,21 +800,14 @@ function parse(text, languageOptions, filePath) {
* problem that ESLint identified just like any other.
*/
try {
debug("Parsing:", filePath);
const parseResult = (typeof parser.parseForESLint === "function")
? parser.parseForESLint(textToParse, parserOptions)
: { ast: parser.parse(textToParse, parserOptions) };

debug("Parsing successful:", filePath);
const ast = parseResult.ast;
const parserServices = parseResult.services || {};
const visitorKeys = parseResult.visitorKeys || evk.KEYS;

debug("Scope analysis:", filePath);
const scopeManager = parseResult.scopeManager || analyzeScope(ast, languageOptions, visitorKeys);

debug("Scope analysis successful:", filePath);

return {
success: true,

Expand Down

0 comments on commit 39daf42

Please sign in to comment.