173 references to ThrowIfFalse
Microsoft.CodeAnalysis.Workspaces (173)
Classification\SyntaxClassification\SyntacticChangeRangeComputer.cs (2)
135
Contract.
ThrowIfFalse
(currentOld.FullSpan.Start == currentNew.FullSpan.Start);
190
Contract.
ThrowIfFalse
((oldRoot.FullSpan.End - currentOld.FullSpan.End) ==
CodeActions\CodeAction.cs (1)
196
Contract.
ThrowIfFalse
(provider is CodeFixProvider or CodeRefactoringProvider);
CodeActions\CodeAction_Cleanup.cs (1)
49
Contract.
ThrowIfFalse
(document.SupportsSyntaxTree);
CodeCleanup\AbstractCodeCleanerService.cs (1)
213
Contract.
ThrowIfFalse
(hasMultiplePreviousToken || hasMultipleNextToken);
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (1)
57
Contract.
ThrowIfFalse
(fixAllContext.Scope is FixAllScope.Document or
CodeFixesAndRefactorings\DocumentBasedFixAllProviderHelpers.cs (1)
79
Contract.
ThrowIfFalse
(
CodeRefactorings\FixAllOccurences\DocumentBasedFixAllProvider.cs (1)
84
Contract.
ThrowIfFalse
(fixAllContext.Scope is FixAllScope.Document or FixAllScope.Project
Diagnostics\CompilationWithAnalyzersPair.cs (2)
26
Contract.
ThrowIfFalse
(projectCompilationWithAnalyzers.AnalysisOptions.ReportSuppressedDiagnostics == hostCompilationWithAnalyzers.AnalysisOptions.ReportSuppressedDiagnostics);
27
Contract.
ThrowIfFalse
(projectCompilationWithAnalyzers.AnalysisOptions.ConcurrentAnalysis == hostCompilationWithAnalyzers.AnalysisOptions.ConcurrentAnalysis);
Diagnostics\DocumentAnalysisScope.cs (1)
56
Contract.
ThrowIfFalse
(TextDocument is AdditionalDocument);
FindSymbols\FindReferences\DependentProjectsFinder.cs (2)
312
Contract.
ThrowIfFalse
(project.SupportsCompilation);
325
Contract.
ThrowIfFalse
(project.SupportsCompilation);
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (1)
591
Contract.
ThrowIfFalse
(notNullOriginalUnreducedSymbol2.GetOriginalUnreducedDefinition().Equals(notNullOriginalUnreducedSymbol2));
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (1)
198
Contract.
ThrowIfFalse
(symbolToGroup.ContainsKey(symbol));
FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
25
Contract.
ThrowIfFalse
(x.Document == y.Document);
FindSymbols\Shared\AbstractSyntaxIndex.cs (1)
122
Contract.
ThrowIfFalse
(document.SupportsSyntaxTree);
FindSymbols\SymbolFinder_Helpers.cs (3)
134
Contract.
ThrowIfFalse
(equivalentTypesWithDifferingAssemblies.All(kvp => !SymbolEquivalenceComparer.Instance.Equals(kvp.Key.ContainingAssembly, kvp.Value.ContainingAssembly)));
137
Contract.
ThrowIfFalse
(equivalentTypesWithDifferingAssemblies.All(kvp => kvp.Key.ContainingType == null));
138
Contract.
ThrowIfFalse
(equivalentTypesWithDifferingAssemblies.All(kvp => kvp.Value.ContainingType == null));
LanguageServices\FixAllSpanMappingService\AbstractFixAllSpanMappingService.cs (1)
25
Contract.
ThrowIfFalse
(fixAllScope is FixAllScope.ContainingMember or FixAllScope.ContainingType);
Notification\AbstractGlobalOperationNotificationService.cs (3)
36
Contract.
ThrowIfFalse
(_registrations.Count == 0);
69
Contract.
ThrowIfFalse
(_operations.Count == 1);
82
Contract.
ThrowIfFalse
(result);
Remote\ExportRemoteServiceCallbackDispatcherAttribute.cs (1)
20
Contract.
ThrowIfFalse
(serviceInterface.IsInterface);
Rename\RenameUtilities.cs (1)
101
Contract.
ThrowIfFalse
(isSubset);
Serialization\SerializableSourceText.cs (1)
181
Contract.
ThrowIfFalse
(kind is SerializationKinds.Bits or SerializationKinds.MemoryMapFile);
Serialization\SerializerService.cs (2)
206
Contract.
ThrowIfFalse
(count <= 2);
214
Contract.
ThrowIfFalse
(language is LanguageNames.CSharp or LanguageNames.VisualBasic);
Serialization\SerializerService_Reference.cs (6)
168
Contract.
ThrowIfFalse
(TryGetAnalyzerImageReferenceFromGuid(guid, out var analyzerImageReference));
276
Contract.
ThrowIfFalse
(kind is SerializationKinds.Bits or SerializationKinds.MemoryMapFile);
393
Contract.
ThrowIfFalse
(metadataKind == MetadataImageKind.Module);
405
Contract.
ThrowIfFalse
(metadataKind == MetadataImageKind.Module);
415
Contract.
ThrowIfFalse
(kind is SerializationKinds.Bits or SerializationKinds.MemoryMapFile);
453
Contract.
ThrowIfFalse
(storageHandle.Identifier.Size == unmanagedStream.Length);
Shared\Extensions\IMethodSymbolExtensions.cs (1)
21
Contract.
ThrowIfFalse
(delegateType.TypeKind == TypeKind.Delegate);
Shared\Extensions\SourceTextExtensions.cs (2)
222
Contract.
ThrowIfFalse
(offset == length);
281
Contract.
ThrowIfFalse
(offset == length);
Shared\TestHooks\AsynchronousOperationListener.cs (3)
114
Contract.
ThrowIfFalse
(_gate.LockHeldByMe());
120
Contract.
ThrowIfFalse
(_gate.LockHeldByMe());
185
Contract.
ThrowIfFalse
(TrackActiveTokens);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\ImmutableIntervalTree`1.cs (1)
248
Contract.
ThrowIfFalse
(rightMaxEndValue > leftMaxEndValue);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (2)
167
Contract.
ThrowIfFalse
(context.FilterSpan.HasValue);
179
Contract.
ThrowIfFalse
(context.FilterSpan.HasValue);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalyzerConfigOptionsExtensions.cs (1)
23
Contract.
ThrowIfFalse
(option.Definition.IsEditorConfigOption);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
549
Contract.
ThrowIfFalse
(symbol.IsNormalAnonymousType());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (4)
209
Contract.
ThrowIfFalse
(0 <= endPosition && endPosition <= line.Length);
210
Contract.
ThrowIfFalse
(tabSize > 0);
218
Contract.
ThrowIfFalse
(column >= 0);
219
Contract.
ThrowIfFalse
(tabSize > 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
299
Contract.
ThrowIfFalse
(nodes.Any());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
414
Contract.
ThrowIfFalse
(intervals.Length == 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (5)
52
Contract.
ThrowIfFalse
(triviaInfo.LineBreaks == 0);
85
Contract.
ThrowIfFalse
(triviaInfo.LineBreaks == 0);
123
Contract.
ThrowIfFalse
(triviaInfo.LineBreaks == 0);
451
Contract.
ThrowIfFalse
(triviaInfo.SecondTokenIsFirstTokenOnLine);
478
Contract.
ThrowIfFalse
(baseToken.RawKind != 0 && startToken.RawKind != 0 && endToken.RawKind != 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.AbstractComplexTrivia.cs (1)
76
Contract.
ThrowIfFalse
(line > 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (3)
92
Contract.
ThrowIfFalse
(space >= 0);
111
Contract.
ThrowIfFalse
(lineBreaks >= 0);
112
Contract.
ThrowIfFalse
(indentation >= 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.Whitespace.cs (2)
27
Contract.
ThrowIfFalse
(space >= 0);
57
Contract.
ThrowIfFalse
(line > 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (2)
31
Contract.
ThrowIfFalse
((indexInStream == -1) || (0 <= indexInStream && indexInStream < tokenStream.TokenCount));
64
Contract.
ThrowIfFalse
(this.TokenStream == other.TokenStream);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenPairWithOperations.cs (1)
30
Contract.
ThrowIfFalse
(0 <= tokenPairIndex && tokenPairIndex < tokenStream.TokenCount - 1);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.cs (6)
138
Contract.
ThrowIfFalse
(0 <= index && index < this.TokenCount);
250
Contract.
ThrowIfFalse
(0 <= pairIndex && pairIndex < this.TokenCount - 1);
429
Contract.
ThrowIfFalse
(this.FormatBeginningOfTree);
441
Contract.
ThrowIfFalse
(this.FormatEndOfTree);
453
Contract.
ThrowIfFalse
(0 <= pairIndex && pairIndex < this.TokenCount - 1);
465
Contract.
ThrowIfFalse
(0 <= pairIndex && pairIndex < this.TokenCount - 1);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.Debug.cs (1)
19
Contract.
ThrowIfFalse
(text == _debugNodeData.GetTextBetween(token1, token2));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.Node.cs (1)
18
Contract.
ThrowIfFalse
(root.GetFirstToken(includeZeroWidth: true).RawKind != 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.StructuredTrivia.cs (1)
22
Contract.
ThrowIfFalse
(trivia.HasStructure);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
184
Contract.
ThrowIfFalse
(lines.Length > 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\AdjustNewLinesOperation.cs (3)
16
Contract.
ThrowIfFalse
(option != AdjustNewLinesOption.ForceLines || line > 0);
17
Contract.
ThrowIfFalse
(option != AdjustNewLinesOption.PreserveLines || line >= 0);
18
Contract.
ThrowIfFalse
(option != AdjustNewLinesOption.ForceLinesIfOnSingleLine || line > 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\AdjustSpacesOperation.cs (1)
16
Contract.
ThrowIfFalse
(space >= 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\IndentBlockOperation.cs (4)
17
Contract.
ThrowIfFalse
(option.IsMaskOn(IndentBlockOption.PositionMask));
36
Contract.
ThrowIfFalse
(option.IsMaskOn(IndentBlockOption.PositionMask));
38
Contract.
ThrowIfFalse
(option.IsMaskOn(IndentBlockOption.RelativePositionMask));
39
Contract.
ThrowIfFalse
(baseToken.Span.End <= textSpan.Start);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (2)
76
Contract.
ThrowIfFalse
(lineBreaks >= 0);
77
Contract.
ThrowIfFalse
(spaces >= 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
66
Contract.
ThrowIfFalse
(locations.All(loc => loc.IsInSource));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
418
Contract.
ThrowIfFalse
(Equals(method, _methodSymbolStack[^1]));
434
Contract.
ThrowIfFalse
(Equals(contextualSymbol, _contextualSymbolStack.Peek()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
525
Contract.
ThrowIfFalse
(method.Equals(_methodSymbolStack[^1]));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
15
Contract.
ThrowIfFalse
(symbol.TypeParameterKind == TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
152
Contract.
ThrowIfFalse
(Monitor.IsEntered(asyncLazy.SyncObject));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (4)
49
Contract.
ThrowIfFalse
(spans.Count > 0);
124
Contract.
ThrowIfFalse
(startToken.Equals(endToken) || startToken.Span.End <= endToken.SpanStart);
286
Contract.
ThrowIfFalse
(backwardPosition < parentNode.FullSpan.End);
312
Contract.
ThrowIfFalse
(parentNode.FullSpan.Start < forwardPosition);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
172
=> Contract.
ThrowIfFalse
(LockHeldByMe());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (2)
381
Contract.
ThrowIfFalse
(task.IsCompleted);
397
Contract.
ThrowIfFalse
(task.IsCompleted);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\SyntaxAnnotationExtensions.cs (1)
18
Contract.
ThrowIfFalse
(symbol is CodeGenerationSymbol);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
135
Contract.
ThrowIfFalse
(document.SupportsSemanticModel);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
554
Contract.
ThrowIfFalse
(syntaxFacts.IsNotPattern(pattern));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\TextDocumentExtensions.cs (2)
50
Contract.
ThrowIfFalse
(textDocument is AdditionalDocument);
59
Contract.
ThrowIfFalse
(textDocument is AnalyzerConfigDocument);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
185
Contract.
ThrowIfFalse
(nodesAndTokensToReduce.Any());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
74
Contract.
ThrowIfFalse
(Id == oldDocument.Id);
Storage\SQLite\v2\Interop\SqlConnection.cs (2)
55
Contract.
ThrowIfFalse
(wrote == length);
316
Contract.
ThrowIfFalse
(MemoryMarshal.TryRead(bytes, out Checksum result));
Storage\SQLite\v2\Interop\SqlStatement.cs (1)
91
Contract.
ThrowIfFalse
(Encoding.UTF8.GetBytes(charsPtr, value.Length, bytesPtr, utf8ByteCount) == utf8ByteCount);
Storage\SQLite\v2\SQLitePersistentStorage.Accessor.cs (3)
166
Contract.
ThrowIfFalse
(TaskScheduler.Current == this.Storage.Scheduler.ConcurrentScheduler);
225
Contract.
ThrowIfFalse
(TaskScheduler.Current == this.Storage.Scheduler.ExclusiveScheduler);
364
Contract.
ThrowIfFalse
(TaskScheduler.Current == this.Storage.Scheduler.ExclusiveScheduler);
Storage\SQLite\v2\SQLitePersistentStorage_FlushWrites.cs (1)
35
Contract.
ThrowIfFalse
(TaskScheduler.Current == this.Scheduler.ExclusiveScheduler);
Storage\SQLite\v2\SQLitePersistentStorage_StringIds.cs (2)
49
Contract.
ThrowIfFalse
(
68
Contract.
ThrowIfFalse
(TaskScheduler.Current == this.Scheduler.ExclusiveScheduler);
Workspace\Host\DocumentService\AbstractSpanMappingService.cs (1)
33
Contract.
ThrowIfFalse
(mappedSpanResults.Length == textChanges.Length);
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
466
Contract.
ThrowIfFalse
(_documentIdToDynamicFileInfoProvider.TryGetValue(documentId, out var fileInfoProvider));
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (10)
207
Contract.
ThrowIfFalse
(_gate.CurrentCount == 0);
214
Contract.
ThrowIfFalse
(_gate.CurrentCount == 0);
308
Contract.
ThrowIfFalse
(_gate.CurrentCount == 0);
355
Contract.
ThrowIfFalse
(_gate.CurrentCount == 0);
383
Contract.
ThrowIfFalse
(_gate.CurrentCount == 0);
422
Contract.
ThrowIfFalse
(_gate.CurrentCount == 0);
447
Contract.
ThrowIfFalse
(_gate.CurrentCount == 0);
451
Contract.
ThrowIfFalse
(_projectUpdateState.ProjectReferenceInfos.Count == 0);
452
Contract.
ThrowIfFalse
(_projectToMaxSupportedLangVersionMap.Count == 0);
453
Contract.
ThrowIfFalse
(_projectToDependencyNodeTargetIdentifier.Count == 0);
Workspace\Solution\Checksum.cs (1)
57
Contract.
ThrowIfFalse
(MemoryMarshal.TryRead(checksum, out Checksum result));
Workspace\Solution\ChecksumCollection.cs (3)
70
Contract.
ThrowIfFalse
(state.TryGetStateChecksums(out var stateChecksums));
82
Contract.
ThrowIfFalse
(state.TryGetStateChecksums(out var stateChecksums));
97
Contract.
ThrowIfFalse
(values.Count == checksums.Children.Length);
Workspace\Solution\DocumentState.cs (3)
49
Contract.
ThrowIfFalse
(ParseOptions is null == TreeSource is null);
341
Contract.
ThrowIfFalse
(SupportsSyntaxTree);
674
Contract.
ThrowIfFalse
(existingId == id);
Workspace\Solution\ProjectCone.cs (1)
22
Contract.
ThrowIfFalse
(projectIds.Contains(rootProjectId));
Workspace\Solution\ProjectDependencyGraph.cs (1)
133
Contract.
ThrowIfFalse
(ProjectIds.Contains(projectId));
Workspace\Solution\ProjectDependencyGraph_AddProjectReference.cs (1)
17
Contract.
ThrowIfFalse
(ProjectIds.Contains(projectId));
Workspace\Solution\ProjectDependencyGraph_RemoveAllProjectReferences.cs (1)
15
Contract.
ThrowIfFalse
(ProjectIds.Contains(projectId));
Workspace\Solution\ProjectDependencyGraph_RemoveProject.cs (1)
14
Contract.
ThrowIfFalse
(ProjectIds.Contains(projectId));
Workspace\Solution\ProjectDependencyGraph_RemoveProjectReference.cs (2)
15
Contract.
ThrowIfFalse
(ProjectIds.Contains(projectId));
16
Contract.
ThrowIfFalse
(_referencesMap[projectId].Contains(referencedProjectId));
Workspace\Solution\ProjectState.cs (2)
966
Contract.
ThrowIfFalse
(oldDocuments.Length == newDocuments.Length);
992
Contract.
ThrowIfFalse
(oldDocuments.Length == newDocuments.Length);
Workspace\Solution\SolutionCompilationState.cs (1)
110
Contract.
ThrowIfFalse
(this.SolutionState.ProjectStates
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (2)
133
Contract.
ThrowIfFalse
(forkedTrackerState is null or InProgressState);
539
Contract.
ThrowIfFalse
(creationPolicy.SkeletonReferenceCreationPolicy is SkeletonReferenceCreationPolicy.CreateIfAbsent or SkeletonReferenceCreationPolicy.DoNotCreate);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
418
Contract.
ThrowIfFalse
(additionalTexts.Length == projectState.AdditionalDocumentStates.Count);
Workspace\Solution\SolutionState.cs (5)
154
Contract.
ThrowIfFalse
(ProjectStates.Count == ProjectIds.Count);
155
Contract.
ThrowIfFalse
(ProjectStates.Count == _dependencyGraph.ProjectIds.Count);
468
Contract.
ThrowIfFalse
(amount is -1 or +1);
497
Contract.
ThrowIfFalse
(newCount == 0);
1154
Contract.
ThrowIfFalse
(ProjectStates.ContainsKey(projectId));
Workspace\Solution\SourceGeneratedDocumentIdentity.cs (1)
28
Contract.
ThrowIfFalse
(documentId.IsSourceGenerated);
Workspace\Solution\StateChecksums.cs (12)
31
Contract.
ThrowIfFalse
(frozenSourceGeneratedDocumentIdentities.HasValue == frozenSourceGeneratedDocuments.HasValue);
32
Contract.
ThrowIfFalse
(frozenSourceGeneratedDocumentIdentities?.Count == frozenSourceGeneratedDocuments?.Length);
112
Contract.
ThrowIfFalse
(result.Checksum == checksum);
143
Contract.
ThrowIfFalse
(FrozenSourceGeneratedDocumentIdentities.HasValue);
144
Contract.
ThrowIfFalse
(FrozenSourceGeneratedDocuments.HasValue);
168
Contract.
ThrowIfFalse
(compilationState.FrozenSourceGeneratedDocumentStates.TryGetState(documentId, out var state));
182
Contract.
ThrowIfFalse
(compilationState.FrozenSourceGeneratedDocumentStates.TryGetState(id, out var state));
196
Contract.
ThrowIfFalse
(solutionState.TryGetStateChecksums(out var solutionChecksums));
202
Contract.
ThrowIfFalse
(solutionState.TryGetStateChecksums(projectCone.RootProjectId, out var solutionChecksums));
274
Contract.
ThrowIfFalse
(result.Checksum == checksum);
445
Contract.
ThrowIfFalse
(result.Checksum == checksum);
460
Contract.
ThrowIfFalse
(this == stateChecksum);
Workspace\Solution\VersionSource\RecoverableTextAndVersion.cs (1)
193
Contract.
ThrowIfFalse
(_storageHandle == null); // Cannot save more than once
Workspace\TextExtensions.cs (1)
90
Contract.
ThrowIfFalse
(solution.ContainsAnalyzerConfigDocument(id));
Workspace\Workspace_Editor.cs (6)
473
Contract.
ThrowIfFalse
(_openSourceGeneratedDocumentIdentities.Remove(document.Id));
800
Contract.
ThrowIfFalse
(_bufferToDocumentInCurrentContextMap.ContainsKey(textContainer));
808
Contract.
ThrowIfFalse
(!_bufferToDocumentInCurrentContextMap.ContainsKey(textContainer));
826
Contract.
ThrowIfFalse
(!_bufferToDocumentInCurrentContextMap.ContainsKey(textContainer));
830
Contract.
ThrowIfFalse
(_bufferToDocumentInCurrentContextMap.ContainsKey(textContainer));
854
Contract.
ThrowIfFalse
(doc.TryGetText(out var text));