File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export function extractGeneric(element: VElement): GenericProcessInfo | null {
95
95
typeDefScope : Scope ,
96
96
isRemoveTarget : ( nodeOrToken : HasLocation ) => boolean ,
97
97
) {
98
- for ( const variable of [ ... typeDefScope . variables ] ) {
98
+ for ( const variable of typeDefScope . variables ) {
99
99
let def = variable . defs . find ( ( d ) =>
100
100
isRemoveTarget ( d . name as HasLocation ) ,
101
101
)
@@ -106,13 +106,13 @@ export function extractGeneric(element: VElement): GenericProcessInfo | null {
106
106
)
107
107
}
108
108
}
109
- for ( const reference of [ ... typeDefScope . references ] ) {
109
+ for ( const reference of typeDefScope . references ) {
110
110
if ( isRemoveTarget ( reference . identifier as HasLocation ) ) {
111
111
removeReference ( reference , typeDefScope )
112
112
}
113
113
}
114
114
115
- for ( const scope of [ ... scopeManager . scopes ] ) {
115
+ for ( const scope of scopeManager . scopes ) {
116
116
if ( isRemoveTarget ( scope . block as HasLocation ) ) {
117
117
removeScope ( scopeManager , scope )
118
118
}
You can’t perform that action at this time.
0 commit comments