Merge branch 'master' into diagnosticsOrganization

This commit is contained in:
Cyrus Najmabadi
2015-02-05 17:30:27 -08:00
23 changed files with 371 additions and 87 deletions

View File

@@ -664,7 +664,16 @@ module FourSlash {
Harness.IO.log(errorMsg);
this.raiseError("Completion list is not empty at Caret");
}
}
public verifyCompletionListAllowsNewIdentifier(negative: boolean) {
var completions = this.getCompletionListAtCaret();
if ((completions && !completions.isNewIdentifierLocation) && !negative) {
this.raiseError("Expected builder completion entry");
} else if ((completions && completions.isNewIdentifierLocation) && negative) {
this.raiseError("Un-expected builder completion entry");
}
}