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