@@ -1800,7 +1800,6 @@ module ts {
1800
1800
function resolveAnonymousTypeMembers ( type : ObjectType ) {
1801
1801
var symbol = type . symbol ;
1802
1802
if ( symbol . flags & SymbolFlags . TypeLiteral ) {
1803
- // Type literal
1804
1803
var members = symbol . members ;
1805
1804
var callSignatures = getSignaturesOfSymbol ( members [ "__call" ] ) ;
1806
1805
var constructSignatures = getSignaturesOfSymbol ( members [ "__new" ] ) ;
@@ -1810,8 +1809,8 @@ module ts {
1810
1809
else {
1811
1810
// Combinations of function, class, enum and module
1812
1811
var members = emptySymbols ;
1813
- var callSignatures = < Signature [ ] > emptyArray ;
1814
- var constructSignatures = < Signature [ ] > emptyArray ;
1812
+ var callSignatures : Signature [ ] = emptyArray ;
1813
+ var constructSignatures : Signature [ ] = emptyArray ;
1815
1814
if ( symbol . flags & SymbolFlags . HasExports ) {
1816
1815
members = symbol . exports ;
1817
1816
}
@@ -1821,13 +1820,16 @@ module ts {
1821
1820
if ( symbol . flags & SymbolFlags . Class ) {
1822
1821
var classType = getDeclaredTypeOfClass ( symbol ) ;
1823
1822
constructSignatures = getSignaturesOfSymbol ( symbol . members [ "__constructor" ] ) ;
1824
- if ( ! constructSignatures . length ) constructSignatures = getDefaultConstructSignatures ( classType ) ;
1823
+ if ( ! constructSignatures . length ) {
1824
+ constructSignatures = getDefaultConstructSignatures ( classType ) ;
1825
+ }
1825
1826
if ( classType . baseTypes . length ) {
1826
- var members = createSymbolTable ( getNamedMembers ( members ) ) ;
1827
+ members = createSymbolTable ( getNamedMembers ( members ) ) ;
1827
1828
addInheritedMembers ( members , getPropertiesOfType ( getTypeOfSymbol ( classType . baseTypes [ 0 ] . symbol ) ) ) ;
1828
1829
}
1829
1830
}
1830
- var numberIndexType = ( symbol . flags & SymbolFlags . Enum ) ? < Type > stringType : undefined ;
1831
+ var stringIndexType : Type = undefined ;
1832
+ var numberIndexType : Type = ( symbol . flags & SymbolFlags . Enum ) ? stringType : undefined ;
1831
1833
}
1832
1834
setObjectTypeMembers ( type , members , callSignatures , constructSignatures , stringIndexType , numberIndexType ) ;
1833
1835
}
0 commit comments