File tree 2 files changed +4
-1
lines changed 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ namespace ts.FindAllReferences {
154
154
const importDecl = importSpecifier . parent as ts . ImportDeclaration ;
155
155
Debug . assert ( importDecl . moduleSpecifier === importSpecifier ) ;
156
156
const defaultName = importDecl . importClause . name ;
157
- const defaultReferencedSymbol = checker . getAliasedSymbol ( checker . getSymbolAtLocation ( defaultName ) ) ;
157
+ const defaultReferencedSymbol = defaultName && checker . getAliasedSymbol ( checker . getSymbolAtLocation ( defaultName ) ) ;
158
158
if ( symbol === defaultReferencedSymbol ) {
159
159
return defaultName . text ;
160
160
}
Original file line number Diff line number Diff line change 7
7
////import [|{| "isWriteAccess": true, "isDefinition": true |}g|] from "./a";
8
8
/////*ref*/[|g|]();
9
9
10
+ // @Filename : c.ts
11
+ ////import { f } from "./a";
12
+
10
13
verify . singleReferenceGroup ( "function f(): void" ) ;
11
14
verify . goToDefinition ( "ref" , "def" ) ;
You can’t perform that action at this time.
0 commit comments