fix jakefile1

This commit is contained in:
Arthur Ozga
2016-11-02 14:33:31 -07:00
parent 04968ab7cb
commit d02eb6c1f1
2 changed files with 8 additions and 8 deletions

View File

@@ -1361,13 +1361,13 @@ namespace ts {
export function getCodeFixChanges(interfaceClause: Node, existingMembers: string[], startPos: number, checker: TypeChecker, reference: boolean, trackingAddedMembers: string[], newLineCharacter: string): TextChange[] {
const type = checker.getTypeAtLocation(interfaceClause);
const changesArray: TextChange[] = [];
if (!(type && type.symbol && type.symbol.declarations && type.symbol.declarations.length > 0)) {
return [];
}
const missingMembers = getMissingInterfaceMembers(<InterfaceDeclaration>type.symbol.declarations[0], existingMembers, checker);
const changesArray: TextChange[] = [];
for (const member of missingMembers) {
if (member.kind === SyntaxKind.PropertySignature || member.kind === SyntaxKind.PropertyDeclaration) {