File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -513,13 +513,12 @@ module ts {
513
513
// We do that by making an anonymous type literal symbol, and then setting the function
514
514
// symbol as its sole member. To the rest of the system, this symbol will be indistinguishable
515
515
// from an actual type literal symbol you would have gotten had you used the long form.
516
- let name = getDeclarationName ( node ) ;
517
- let symbol = createSymbol ( SymbolFlags . Signature , name ) ;
516
+ let symbol = createSymbol ( SymbolFlags . Signature , getDeclarationName ( node ) ) ;
518
517
addDeclarationToSymbol ( symbol , node , SymbolFlags . Signature ) ;
519
518
520
519
let typeLiteralSymbol = createSymbol ( SymbolFlags . TypeLiteral , "__type" ) ;
521
520
addDeclarationToSymbol ( typeLiteralSymbol , node , SymbolFlags . TypeLiteral ) ;
522
- typeLiteralSymbol . members = { [ name ] : symbol } ;
521
+ typeLiteralSymbol . members = { [ symbol . name ] : symbol } ;
523
522
}
524
523
525
524
function bindAnonymousDeclaration ( node : Declaration , symbolFlags : SymbolFlags , name : string ) {
You can’t perform that action at this time.
0 commit comments