File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2216,7 +2216,7 @@ namespace ts {
2216
2216
classPrototype . parent = leftSideOfAssignment ;
2217
2217
2218
2218
let funcSymbol = container . locals . get ( constructorFunction . text ) ;
2219
- if ( isDeclarationOfFunctionOrClassExpression ( funcSymbol ) ) {
2219
+ if ( funcSymbol && isDeclarationOfFunctionOrClassExpression ( funcSymbol ) ) {
2220
2220
funcSymbol = ( funcSymbol . valueDeclaration as VariableDeclaration ) . initializer . symbol ;
2221
2221
}
2222
2222
@@ -2246,7 +2246,7 @@ namespace ts {
2246
2246
target . parent = leftSideOfAssignment ;
2247
2247
2248
2248
let funcSymbol = container . locals . get ( target . text ) ;
2249
- if ( isDeclarationOfFunctionOrClassExpression ( funcSymbol ) ) {
2249
+ if ( funcSymbol && isDeclarationOfFunctionOrClassExpression ( funcSymbol ) ) {
2250
2250
funcSymbol = ( funcSymbol . valueDeclaration as VariableDeclaration ) . initializer . symbol ;
2251
2251
}
2252
2252
You can’t perform that action at this time.
0 commit comments