File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -120,9 +120,22 @@ namespace Utils {
120120 } ) ;
121121
122122 for ( const childName in node ) {
123- if ( childName === "parent" || childName === "nextContainer" || childName === "modifiers" || childName === "externalModuleIndicator" ||
123+ if ( childName === "parent" ||
124+ childName === "nextContainer" ||
125+ childName === "modifiers" ||
126+ childName === "externalModuleIndicator" ||
124127 // for now ignore jsdoc comments
125- childName === "jsDocComment" || childName === "checkJsDirective" || childName === "commonJsModuleIndicator" ) {
128+ childName === "jsDocComment" ||
129+ childName === "checkJsDirective" ||
130+ childName === "commonJsModuleIndicator" ||
131+ // ignore nodes added only to report grammar errors
132+ childName === "illegalInitializer" ||
133+ childName === "illegalDecorators" ||
134+ childName === "illegalModifiers" ||
135+ childName === "illegalQuestionToken" ||
136+ childName === "illegalExclamationToken" ||
137+ childName === "illegalTypeParameters" ||
138+ childName === "illegalType" ) {
126139 continue ;
127140 }
128141 const child = ( node as any ) [ childName ] ;
You can’t perform that action at this time.
0 commit comments