@@ -1359,20 +1359,20 @@ namespace ts {
13591359 } ;
13601360 }
13611361
1362- export function getMissingAbstractMembersInsertion ( classDecl : ClassDeclaration , resolvedType : ResolvedType , checker : TypeChecker , newlineChar : string ) : string {
1363- const classSymbol = checker . getSymbolOfNode ( classDecl ) ;
1362+ export function getMissingAbstractMembersInsertion ( classDeclaration : ClassDeclaration , resolvedType : ResolvedType , checker : TypeChecker , newlineChar : string ) : string {
1363+ const classSymbol = checker . getSymbolOfNode ( classDeclaration ) ;
13641364 const missingMembers = filterMissingMembers ( filterAbstract ( filterNonPrivate ( resolvedType . members ) ) , classSymbol . members ) ;
1365- return getInsertionsForMembers ( missingMembers , classDecl , checker , newlineChar ) ;
1365+ return getInsertionsForMembers ( missingMembers , classDeclaration , checker , newlineChar ) ;
13661366 }
13671367
13681368 /**
13691369 * Finds members of the resolved type that are missing in the class pointed to by class decl
13701370 * and generates source code for the missing members.
13711371 */
1372- export function getMissingMembersInsertion ( classDecl : ClassDeclaration , resolvedType : ResolvedType , checker : TypeChecker , newlineChar : string ) : string {
1373- const classSymbol = checker . getSymbolOfNode ( classDecl ) ;
1372+ export function getMissingMembersInsertion ( classDeclaration : ClassDeclaration , resolvedType : ResolvedType , checker : TypeChecker , newlineChar : string ) : string {
1373+ const classSymbol = checker . getSymbolOfNode ( classDeclaration ) ;
13741374 const missingMembers = filterMissingMembers ( filterNonPrivate ( resolvedType . members ) , classSymbol . members ) ;
1375- return getInsertionsForMembers ( missingMembers , classDecl , checker , newlineChar ) ;
1375+ return getInsertionsForMembers ( missingMembers , classDeclaration , checker , newlineChar ) ;
13761376 }
13771377
13781378 /**
@@ -1388,24 +1388,24 @@ namespace ts {
13881388 return result ;
13891389 }
13901390
1391- function filterSymbolMapByDecl ( symbolMap : Map < Symbol > , pred : ( decl : Declaration ) => boolean ) : Map < Symbol > {
1391+ function filterSymbolMapByDeclaration ( symbolMap : Map < Symbol > , pred : ( decl : Declaration ) => boolean ) : Map < Symbol > {
13921392 const result = createMap < Symbol > ( ) ;
13931393 for ( const key in symbolMap ) {
1394- const decl = symbolMap [ key ] . getDeclarations ( ) ;
1395- Debug . assert ( ! ! ( decl && decl . length ) ) ;
1396- if ( pred ( decl [ 0 ] ) ) {
1394+ const declaration = symbolMap [ key ] . getDeclarations ( ) ;
1395+ Debug . assert ( ! ! ( declaration && declaration . length ) ) ;
1396+ if ( pred ( declaration [ 0 ] ) ) {
13971397 result [ key ] = symbolMap [ key ] ;
13981398 }
13991399 }
14001400 return result ;
14011401 }
14021402
14031403 function filterAbstract ( symbolMap : Map < Symbol > ) {
1404- return filterSymbolMapByDecl ( symbolMap , decl => ! ! ( getModifierFlags ( decl ) & ModifierFlags . Abstract ) ) ;
1404+ return filterSymbolMapByDeclaration ( symbolMap , decl => ! ! ( getModifierFlags ( decl ) & ModifierFlags . Abstract ) ) ;
14051405 }
14061406
14071407 function filterNonPrivate ( symbolMap : Map < Symbol > ) {
1408- return filterSymbolMapByDecl ( symbolMap , decl => ! ( getModifierFlags ( decl ) & ModifierFlags . Private ) ) ;
1408+ return filterSymbolMapByDeclaration ( symbolMap , decl => ! ( getModifierFlags ( decl ) & ModifierFlags . Private ) ) ;
14091409 }
14101410
14111411 function getInsertionsForMembers ( symbolMap : MapLike < Symbol > , enclosingDeclaration : ClassDeclaration , checker : TypeChecker , newlineChar : string ) : string {
@@ -1420,11 +1420,11 @@ namespace ts {
14201420 function getInsertionForMemberSymbol ( symbol : Symbol , enclosingDeclaration : ClassDeclaration , checker : TypeChecker , newlineChar : string ) : string {
14211421 const name = symbol . getName ( ) ;
14221422 const type = checker . getTypeOfSymbol ( symbol ) ;
1423- const decls = symbol . getDeclarations ( ) ;
1424- if ( ! ( decls && decls . length ) ) {
1423+ const declarations = symbol . getDeclarations ( ) ;
1424+ if ( ! ( declarations && declarations . length ) ) {
14251425 return "" ;
14261426 }
1427- const node = decls [ 0 ] ;
1427+ const node = declarations [ 0 ] ;
14281428 const visibility = getVisibilityPrefix ( getModifierFlags ( node ) ) ;
14291429 switch ( node . kind ) {
14301430 case SyntaxKind . PropertySignature :
@@ -1434,12 +1434,12 @@ namespace ts {
14341434
14351435 case SyntaxKind . MethodSignature :
14361436 case SyntaxKind . MethodDeclaration :
1437- const sigs = checker . getSignaturesOfType ( type , SignatureKind . Call ) ;
1438- if ( ! ( sigs && sigs . length > 0 ) ) {
1437+ const signatures = checker . getSignaturesOfType ( type , SignatureKind . Call ) ;
1438+ if ( ! ( signatures && signatures . length > 0 ) ) {
14391439 return "" ;
14401440 }
14411441 // TODO: (arozga) Deal with multiple signatures.
1442- const sigString = checker . signatureToString ( sigs [ 0 ] , enclosingDeclaration , TypeFormatFlags . supressAnyReturnType , SignatureKind . Call ) ;
1442+ const sigString = checker . signatureToString ( signatures [ 0 ] , enclosingDeclaration , TypeFormatFlags . supressAnyReturnType , SignatureKind . Call ) ;
14431443
14441444 return `${ visibility } ${ name } ${ sigString } ${ getMethodBodyStub ( newlineChar ) } ` ;
14451445 default :
0 commit comments