diff options
author | Rich Trott <rtrott@gmail.com> | 2019-09-30 21:09:47 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-10-02 21:05:28 -0700 |
commit | 88ef086e39cd055a1cdc6720981f50e4791fb90f (patch) | |
tree | e6d92724ca0c2fba668394f6d0c34c85a610c5ca /tools/node_modules/eslint/lib/source-code/source-code.js | |
parent | a67b73b9aee64d74dba52029b57c7d2b97b9e149 (diff) | |
download | node-new-88ef086e39cd055a1cdc6720981f50e4791fb90f.tar.gz |
tools: update ESLint to v6.5.1
PR-URL: https://github.com/nodejs/node/pull/29785
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: David Carlier <devnexen@gmail.com>
Diffstat (limited to 'tools/node_modules/eslint/lib/source-code/source-code.js')
-rw-r--r-- | tools/node_modules/eslint/lib/source-code/source-code.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/node_modules/eslint/lib/source-code/source-code.js b/tools/node_modules/eslint/lib/source-code/source-code.js index 88a9c0a4e4..42e7b0c2f4 100644 --- a/tools/node_modules/eslint/lib/source-code/source-code.js +++ b/tools/node_modules/eslint/lib/source-code/source-code.js @@ -93,7 +93,6 @@ class SourceCode extends TokenStore { * @param {ScopeManager|null} textOrConfig.scopeManager - The scope of this source code. * @param {Object|null} textOrConfig.visitorKeys - The visitor keys to traverse AST. * @param {ASTNode} [astIfNoConfig] - The Program node of the AST representing the code. This AST should be created from the text that BOM was stripped. - * @constructor */ constructor(textOrConfig, astIfNoConfig) { let text, ast, parserServices, scopeManager, visitorKeys; @@ -206,9 +205,9 @@ class SourceCode extends TokenStore { /** * Gets the source code for the given node. - * @param {ASTNode=} node The AST node to get the text for. - * @param {int=} beforeCount The number of characters before the node to retrieve. - * @param {int=} afterCount The number of characters after the node to retrieve. + * @param {ASTNode} [node] The AST node to get the text for. + * @param {int} [beforeCount] The number of characters before the node to retrieve. + * @param {int} [afterCount] The number of characters after the node to retrieve. * @returns {string} The text representing the AST node. * @public */ |