File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -100,12 +100,12 @@ module.exports = {
100
100
}
101
101
102
102
/**
103
- * Checks identifier or literal nodes for errors that we are choosing to ignore and calls the relevant methods to remove the errors
103
+ * Checks literal nodes for errors that we are choosing to ignore and calls the relevant methods to remove the errors
104
104
* @param {ASTNode } node to check for matching errors.
105
105
* @returns {void }
106
106
* @private
107
107
*/
108
- function removeInvalidNodeErrorsInIdentifierOrLiteral ( node ) {
108
+ function removeInvalidNodeErrorsInLiteral ( node ) {
109
109
const shouldCheckStrings = skipStrings && ( typeof node . value === "string" ) ;
110
110
const shouldCheckRegExps = skipRegExps && Boolean ( node . regex ) ;
111
111
@@ -237,8 +237,7 @@ module.exports = {
237
237
checkForIrregularLineTerminators ( node ) ;
238
238
} ;
239
239
240
- nodes . Identifier = removeInvalidNodeErrorsInIdentifierOrLiteral ;
241
- nodes . Literal = removeInvalidNodeErrorsInIdentifierOrLiteral ;
240
+ nodes . Literal = removeInvalidNodeErrorsInLiteral ;
242
241
nodes . TemplateElement = skipTemplates ? removeInvalidNodeErrorsInTemplateLiteral : noop ;
243
242
nodes [ "Program:exit" ] = function ( ) {
244
243
if ( skipComments ) {
You can’t perform that action at this time.
0 commit comments