17 references to Fail
Microsoft.CodeAnalysis.LanguageServer (2)
FileBasedPrograms\FileBasedProgramsProjectSystem.cs (1)
100Contract.Fail($"Could not find language information for {uri} with absolute path {documentFilePath}");
HostWorkspace\LanguageServerProjectLoader.cs (1)
389Contract.Fail($"Cannot begin loading project '{projectPath}' because it has already begun loading.");
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Handler\CodeActions\CodeActionResolveHelper.cs (1)
253Contract.Fail($"Can't find uri for document: {newTextDoc.Name}.");
Handler\Completion\CompletionResolveHandler.cs (1)
131Contract.Fail("Document should always be provided when resolving a completion item request.");
Handler\Completion\Extensions.cs (1)
57Contract.Fail("Result id should always be provided when resolving a completion item we returned.");
Microsoft.CodeAnalysis.Workspaces (12)
Editing\SyntaxEditor.cs (1)
253Contract.Fail($"GetCurrentNode returned null with the following node: {OriginalNode}");
Remote\IRemoteKeepAliveService.cs (1)
73Contract.Fail("Should have been disposed!");
src\Dependencies\Contracts\Contract.cs (10)
34Fail("Unexpected null", lineNumber, filePath); 47Fail("Unexpected null", lineNumber, filePath); 60Fail(message, lineNumber, filePath); 73Fail(message.GetFormattedText(), lineNumber, filePath); 86Fail("Unexpected false", lineNumber, filePath); 99Fail(message, lineNumber, filePath); 112Fail(message.GetFormattedText(), lineNumber, filePath); 125Fail("Unexpected true", lineNumber, filePath); 138Fail(message, lineNumber, filePath); 151Fail(message.GetFormattedText(), lineNumber, filePath);