diff --git a/lib/linter/linter.js b/lib/linter/linter.js index 9b9f4919207..5304a612a59 100644 --- a/lib/linter/linter.js +++ b/lib/linter/linter.js @@ -800,14 +800,21 @@ 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,