170 references to ThrowIfFalse
Microsoft.CodeAnalysis.Workspaces (170)
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)
195
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)
56
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)
25
Contract.
ThrowIfFalse
(projectCompilationWithAnalyzers.AnalysisOptions.ReportSuppressedDiagnostics == hostCompilationWithAnalyzers.AnalysisOptions.ReportSuppressedDiagnostics);
26
Contract.
ThrowIfFalse
(projectCompilationWithAnalyzers.AnalysisOptions.ConcurrentAnalysis == hostCompilationWithAnalyzers.AnalysisOptions.ConcurrentAnalysis);
Diagnostics\DocumentAnalysisScope.cs (1)
56
Contract.
ThrowIfFalse
(TextDocument is AdditionalDocument);
FindSymbols\FindReferences\DependentProjectsFinder.cs (2)
313
Contract.
ThrowIfFalse
(project.SupportsCompilation);
326
Contract.
ThrowIfFalse
(project.SupportsCompilation);
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (1)
591
Contract.
ThrowIfFalse
(notNullOriginalUnreducedSymbol2.GetOriginalUnreducedDefinition().Equals(notNullOriginalUnreducedSymbol2));
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (1)
197
Contract.
ThrowIfFalse
(symbolToGroup.ContainsKey(symbol));
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)
43
Contract.
ThrowIfFalse
(_registrations.Count == 0);
73
Contract.
ThrowIfFalse
(_operations.Count == 1);
86
Contract.
ThrowIfFalse
(result);
Remote\ExportRemoteServiceCallbackDispatcherAttribute.cs (1)
19
Contract.
ThrowIfFalse
(serviceInterface.IsInterface);
Rename\RenameUtilities.cs (1)
101
Contract.
ThrowIfFalse
(isSubset);
Serialization\SerializableSourceText.cs (1)
179
Contract.
ThrowIfFalse
(kind is SerializationKinds.Bits or SerializationKinds.MemoryMapFile);
Serialization\SerializerService_Reference.cs (6)
175
Contract.
ThrowIfFalse
(TryGetAnalyzerImageReferenceFromGuid(guid, out var analyzerImageReference));
283
Contract.
ThrowIfFalse
(kind is SerializationKinds.Bits or SerializationKinds.MemoryMapFile);
400
Contract.
ThrowIfFalse
(metadataKind == MetadataImageKind.Module);
412
Contract.
ThrowIfFalse
(metadataKind == MetadataImageKind.Module);
422
Contract.
ThrowIfFalse
(kind is SerializationKinds.Bits or SerializationKinds.MemoryMapFile);
460
Contract.
ThrowIfFalse
(storageHandle.Identifier.Size == unmanagedStream.Length);
Shared\Extensions\IMethodSymbolExtensions.cs (1)
17
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\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
272
Contract.
ThrowIfFalse
(batchResultTask.IsCompleted);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\ImmutableIntervalTree`1.cs (1)
248
Contract.
ThrowIfFalse
(rightMaxEndValue > leftMaxEndValue);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (2)
166
Contract.
ThrowIfFalse
(context.FilterSpan.HasValue);
178
Contract.
ThrowIfFalse
(context.FilterSpan.HasValue);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalyzerConfigOptionsExtensions.cs (1)
22
Contract.
ThrowIfFalse
(option.Definition.IsEditorConfigOption);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
557
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)
413
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)
75
Contract.
ThrowIfFalse
(line > 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (3)
88
Contract.
ThrowIfFalse
(space >= 0);
107
Contract.
ThrowIfFalse
(lineBreaks >= 0);
108
Contract.
ThrowIfFalse
(indentation >= 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.Whitespace.cs (2)
25
Contract.
ThrowIfFalse
(space >= 0);
55
Contract.
ThrowIfFalse
(line > 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (2)
28
Contract.
ThrowIfFalse
((indexInStream == -1) || (0 <= indexInStream && indexInStream < tokenStream.TokenCount));
61
Contract.
ThrowIfFalse
(this.TokenStream == other.TokenStream);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenPairWithOperations.cs (1)
29
Contract.
ThrowIfFalse
(0 <= tokenPairIndex && tokenPairIndex < tokenStream.TokenCount - 1);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.cs (6)
136
Contract.
ThrowIfFalse
(0 <= index && index < this.TokenCount);
248
Contract.
ThrowIfFalse
(0 <= pairIndex && pairIndex < this.TokenCount - 1);
427
Contract.
ThrowIfFalse
(this.FormatBeginningOfTree);
439
Contract.
ThrowIfFalse
(this.FormatEndOfTree);
451
Contract.
ThrowIfFalse
(0 <= pairIndex && pairIndex < this.TokenCount - 1);
463
Contract.
ThrowIfFalse
(0 <= pairIndex && pairIndex < this.TokenCount - 1);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.Debug.cs (1)
18
Contract.
ThrowIfFalse
(text == _debugNodeData.GetTextBetween(token1, token2));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.Node.cs (1)
17
Contract.
ThrowIfFalse
(root.GetFirstToken(includeZeroWidth: true).RawKind != 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.StructuredTrivia.cs (1)
21
Contract.
ThrowIfFalse
(trivia.HasStructure);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
183
Contract.
ThrowIfFalse
(lines.Length > 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\AdjustNewLinesOperation.cs (3)
14
Contract.
ThrowIfFalse
(option != AdjustNewLinesOption.ForceLines || line > 0);
15
Contract.
ThrowIfFalse
(option != AdjustNewLinesOption.PreserveLines || line >= 0);
16
Contract.
ThrowIfFalse
(option != AdjustNewLinesOption.ForceLinesIfOnSingleLine || line > 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\AdjustSpacesOperation.cs (1)
14
Contract.
ThrowIfFalse
(space >= 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\IndentBlockOperation.cs (4)
16
Contract.
ThrowIfFalse
(option.IsMaskOn(IndentBlockOption.PositionMask));
35
Contract.
ThrowIfFalse
(option.IsMaskOn(IndentBlockOption.PositionMask));
37
Contract.
ThrowIfFalse
(option.IsMaskOn(IndentBlockOption.RelativePositionMask));
38
Contract.
ThrowIfFalse
(baseToken.Span.End <= textSpan.Start);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (2)
75
Contract.
ThrowIfFalse
(lineBreaks >= 0);
76
Contract.
ThrowIfFalse
(spaces >= 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (4)
311
Contract.
ThrowIfFalse
(serializableRules.IsEmpty == namingStyles.IsEmpty);
312
Contract.
ThrowIfFalse
(serializableRules.IsEmpty == symbolSpecifications.IsEmpty);
330
Contract.
ThrowIfFalse
(namingRules.IsEmpty == namingStyles.IsEmpty);
331
Contract.
ThrowIfFalse
(namingRules.IsEmpty == symbolSpecifications.IsEmpty);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
65
Contract.
ThrowIfFalse
(locations.All(loc => loc != null && 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)
518
Contract.
ThrowIfFalse
(method.Equals(_methodSymbolStack[^1]));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13
Contract.
ThrowIfFalse
(symbol.TypeParameterKind == TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
153
Contract.
ThrowIfFalse
(Monitor.IsEntered(asyncLazy.SyncObject));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (4)
48
Contract.
ThrowIfFalse
(spans.Count > 0);
123
Contract.
ThrowIfFalse
(startToken.Equals(endToken) || startToken.Span.End <= endToken.SpanStart);
285
Contract.
ThrowIfFalse
(backwardPosition < parentNode.FullSpan.End);
311
Contract.
ThrowIfFalse
(parentNode.FullSpan.Start < forwardPosition);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
173
=> Contract.
ThrowIfFalse
(LockHeldByMe());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (2)
117
Contract.
ThrowIfFalse
(task.IsCompleted);
133
Contract.
ThrowIfFalse
(task.IsCompleted);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\SyntaxAnnotationExtensions.cs (1)
17
Contract.
ThrowIfFalse
(symbol is CodeGenerationSymbol);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
130
Contract.
ThrowIfFalse
(document.SupportsSemanticModel);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
552
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\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
24
Contract.
ThrowIfFalse
(x.Document == y.Document);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
163
Contract.
ThrowIfFalse
(nodesAndTokensToReduce.Any());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
70
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)
83
Contract.
ThrowIfFalse
(Encoding.UTF8.GetBytes(value.AsSpan(), bytes) == 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)
48
Contract.
ThrowIfFalse
(
67
Contract.
ThrowIfFalse
(TaskScheduler.Current == this.Scheduler.ExclusiveScheduler);
Workspace\Host\DocumentService\AbstractSpanMappingService.cs (1)
32
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)
206
Contract.
ThrowIfFalse
(_gate.CurrentCount == 0);
213
Contract.
ThrowIfFalse
(_gate.CurrentCount == 0);
307
Contract.
ThrowIfFalse
(_gate.CurrentCount == 0);
354
Contract.
ThrowIfFalse
(_gate.CurrentCount == 0);
382
Contract.
ThrowIfFalse
(_gate.CurrentCount == 0);
421
Contract.
ThrowIfFalse
(_gate.CurrentCount == 0);
446
Contract.
ThrowIfFalse
(_gate.CurrentCount == 0);
450
Contract.
ThrowIfFalse
(_projectUpdateState.ProjectReferenceInfos.Count == 0);
451
Contract.
ThrowIfFalse
(_projectToMaxSupportedLangVersionMap.Count == 0);
452
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)
47
Contract.
ThrowIfFalse
(ParseOptions is null == TreeSource is null);
339
Contract.
ThrowIfFalse
(SupportsSyntaxTree);
661
Contract.
ThrowIfFalse
(existingId == id);
Workspace\Solution\ProjectCone.cs (1)
21
Contract.
ThrowIfFalse
(projectIds.Contains(rootProjectId));
Workspace\Solution\ProjectDependencyGraph.cs (1)
137
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)
991
Contract.
ThrowIfFalse
(oldDocuments.Length == newDocuments.Length);
1017
Contract.
ThrowIfFalse
(oldDocuments.Length == newDocuments.Length);
Workspace\Solution\SolutionCompilationState.cs (1)
111
Contract.
ThrowIfFalse
(this.SolutionState.ProjectStates
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (2)
137
Contract.
ThrowIfFalse
(forkedTrackerState is null or InProgressState);
543
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)
156
Contract.
ThrowIfFalse
(ProjectStates.Count == ProjectIds.Count);
157
Contract.
ThrowIfFalse
(ProjectStates.Count == _dependencyGraph.ProjectIds.Count);
470
Contract.
ThrowIfFalse
(amount is -1 or +1);
499
Contract.
ThrowIfFalse
(newCount == 0);
1156
Contract.
ThrowIfFalse
(ProjectStates.ContainsKey(projectId));
Workspace\Solution\SourceGeneratedDocumentIdentity.cs (1)
28
Contract.
ThrowIfFalse
(documentId.IsSourceGenerated);
Workspace\Solution\StateChecksums.cs (6)
96
Contract.
ThrowIfFalse
(result.Checksum == checksum);
147
Contract.
ThrowIfFalse
(compilationState.FrozenSourceGeneratedDocumentStates.TryGetState(documentId, out var state));
161
Contract.
ThrowIfFalse
(compilationState.FrozenSourceGeneratedDocumentStates.TryGetState(id, out var state));
174
Contract.
ThrowIfFalse
(solutionState.TryGetStateChecksums(out var solutionChecksums));
180
Contract.
ThrowIfFalse
(solutionState.TryGetStateChecksums(projectCone.RootProjectId, out var solutionChecksums));
252
Contract.
ThrowIfFalse
(result.Checksum == checksum);
Workspace\Solution\VersionSource\RecoverableTextAndVersion.cs (1)
193
Contract.
ThrowIfFalse
(_storageHandle == null); // Cannot save more than once
Workspace\TextExtensions.cs (1)
89
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));