File tree Expand file tree Collapse file tree 1 file changed +2
-28
lines changed Expand file tree Collapse file tree 1 file changed +2
-28
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ module.exports = {
198198 markDisplayNameAsDeclared ( component . node . type === 'TSAsExpression' ? component . node . expression : component . node ) ;
199199 } ,
200200
201- FunctionExpression ( node ) {
201+ ' FunctionExpression, FunctionDeclaration, ArrowFunctionExpression' ( node ) {
202202 if ( ignoreTranspilerName || ! hasTranspilerName ( node ) ) {
203203 return ;
204204 }
@@ -207,40 +207,14 @@ module.exports = {
207207 }
208208 } ,
209209
210- FunctionDeclaration ( node ) {
211- if ( ignoreTranspilerName || ! hasTranspilerName ( node ) ) {
212- return ;
213- }
214- if ( components . get ( node ) ) {
215- markDisplayNameAsDeclared ( node ) ;
216- }
217- } ,
218-
219- ArrowFunctionExpression ( node ) {
220- if ( ignoreTranspilerName || ! hasTranspilerName ( node ) ) {
221- return ;
222- }
223-
224- if ( components . get ( node ) ) {
225- markDisplayNameAsDeclared ( node ) ;
226- }
227- } ,
228-
229210 MethodDefinition ( node ) {
230211 if ( ! propsUtil . isDisplayNameDeclaration ( node . key ) ) {
231212 return ;
232213 }
233214 markDisplayNameAsDeclared ( node ) ;
234215 } ,
235216
236- ClassExpression ( node ) {
237- if ( ignoreTranspilerName || ! hasTranspilerName ( node ) ) {
238- return ;
239- }
240- markDisplayNameAsDeclared ( node ) ;
241- } ,
242-
243- ClassDeclaration ( node ) {
217+ 'ClassExpression, ClassDeclaration' ( node ) {
244218 if ( ignoreTranspilerName || ! hasTranspilerName ( node ) ) {
245219 return ;
246220 }
You can’t perform that action at this time.
0 commit comments