@@ -63,7 +63,7 @@ export class ActionContext {
6363 }
6464 try {
6565 isThisOrSuper = symbolName === 'this' || symbolName === 'super' ;
66- member = await nextClass . getMemberByName ( symbolName , nextVisibility , i === 0 ? lineIndex : null ) ;
66+ [ member , nextClass ] = await nextClass . getMemberByName ( symbolName , nextVisibility , i === 0 ? lineIndex : null ) ;
6767 if ( member . isConstructor ) throw new Error ( 'Do not want constructor' ) ;
6868 nextVisibility = isThisOrSuper ? VisibilityFilter . ALL_INSTANCE : VisibilityFilter . PUBLIC_INSTANCE ;
6969 returnType = member . returnType ;
@@ -73,7 +73,8 @@ export class ActionContext {
7373 } catch {
7474 if ( i === 0 ) {
7575 try {
76- returnType = ( await this . _globalClass . getMemberByName ( symbolName , VisibilityFilter . EVERYTHING ) ) . returnType ;
76+ [ member , nextClass ] = await this . _globalClass . getMemberByName ( symbolName , VisibilityFilter . EVERYTHING ) ;
77+ returnType = member . returnType ;
7778 nextVisibility = VisibilityFilter . PUBLIC_INSTANCE ;
7879 } catch {
7980 returnType = symbolName ;
@@ -351,7 +352,7 @@ export class ActionContext {
351352 symbolCalled = symbolChain [ i ] . called ;
352353 isThisOrSuper = symbolName === 'this' || symbolName === 'super' ;
353354 try {
354- member = await nextClass . getMemberByName ( symbolName , nextVisibility , i === 0 ? lineIndex : null ) ;
355+ [ member , nextClass ] = await nextClass . getMemberByName ( symbolName , nextVisibility , i === 0 ? lineIndex : null ) ;
355356 if ( member . isConstructor ) throw new Error ( 'Do not want constructor' ) ;
356357 nextVisibility = isThisOrSuper ? VisibilityFilter . ALL_INSTANCE : VisibilityFilter . PUBLIC_INSTANCE ;
357358 returnType = member . returnType ;
@@ -364,7 +365,7 @@ export class ActionContext {
364365 } catch {
365366 if ( i === 0 ) {
366367 try {
367- member = await this . _globalClass . getMemberByName ( symbolName , VisibilityFilter . EVERYTHING ) ;
368+ [ member , nextClass ] = await this . _globalClass . getMemberByName ( symbolName , VisibilityFilter . EVERYTHING ) ;
368369 nextVisibility = VisibilityFilter . PUBLIC_INSTANCE ;
369370 returnType = member . returnType ;
370371 if ( i === l - 1 ) {
0 commit comments