Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Commit

Permalink
fix: cannot read properties of undefined getAllComments
Browse files Browse the repository at this point in the history
  • Loading branch information
dahiro committed May 8, 2023
1 parent 918b0fd commit 8185bd4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/linter/linter.js
Original file line number Diff line number Diff line change
Expand Up @@ -1869,6 +1869,14 @@ class Linter {
return internalSlotsMap.get(this).lastSourceCode;
}

/**
* Gets the SourceCode object representing the parsed source.
* @returns {SourceCode} The SourceCode object.
*/
get sourceCode() {
return internalSlotsMap.get(this).lastSourceCode;
}

/**
* Gets the list of SuppressedLintMessage produced in the last running.
* @returns {SuppressedLintMessage[]} The list of SuppressedLintMessage
Expand Down

0 comments on commit 8185bd4

Please sign in to comment.