File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -513,13 +513,12 @@ module ts {
513513 // We do that by making an anonymous type literal symbol, and then setting the function
514514 // symbol as its sole member. To the rest of the system, this symbol will be indistinguishable
515515 // 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 ) ) ;
518517 addDeclarationToSymbol ( symbol , node , SymbolFlags . Signature ) ;
519518
520519 let typeLiteralSymbol = createSymbol ( SymbolFlags . TypeLiteral , "__type" ) ;
521520 addDeclarationToSymbol ( typeLiteralSymbol , node , SymbolFlags . TypeLiteral ) ;
522- typeLiteralSymbol . members = { [ name ] : symbol } ;
521+ typeLiteralSymbol . members = { [ symbol . name ] : symbol } ;
523522 }
524523
525524 function bindAnonymousDeclaration ( node : Declaration , symbolFlags : SymbolFlags , name : string ) {
You can’t perform that action at this time.
0 commit comments