32 references to PublicContract
Microsoft.CodeAnalysis.Workspaces (32)
CodeFixes\FixAllOccurrences\FixAllContext.cs (2)
166
PublicContract
.RequireNonNullItems(diagnosticIds, nameof(diagnosticIds)),
201
PublicContract
.RequireNonNullItems(diagnosticIds, nameof(diagnosticIds)),
Options\Option.cs (1)
54
[..
PublicContract
.RequireNonNullItems(storageLocations, nameof(storageLocations))],
Options\PerLanguageOption.cs (1)
46
[..
PublicContract
.RequireNonNullItems(storageLocations, nameof(storageLocations))],
Workspace\Solution\DocumentInfo.cs (2)
89
PublicContract
.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders)),
124
=> With(attributes: Attributes.With(folders:
PublicContract
.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders))));
Workspace\Solution\ProjectInfo.cs (12)
275
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(documents, nameof(documents)),
276
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(projectReferences, nameof(projectReferences)),
277
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(metadataReferences, nameof(metadataReferences)),
278
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerReferences, nameof(analyzerReferences)),
279
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(additionalDocuments, nameof(additionalDocuments)),
280
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerConfigDocuments, nameof(analyzerConfigDocuments)),
377
=> With(documents:
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(documents, nameof(documents)));
380
=> With(additionalDocuments:
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(additionalDocuments, nameof(additionalDocuments)));
383
=> With(analyzerConfigDocuments:
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerConfigDocuments, nameof(analyzerConfigDocuments)));
386
=> With(projectReferences:
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(projectReferences, nameof(projectReferences)));
389
=> With(metadataReferences:
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(metadataReferences, nameof(metadataReferences)));
392
=> With(analyzerReferences:
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerReferences, nameof(analyzerReferences)));
Workspace\Solution\Solution.cs (12)
617
PublicContract
.RequireUniqueNonNullItems(collection, nameof(projectReferences));
676
var collection =
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(projectReferences, nameof(projectReferences));
714
PublicContract
.RequireUniqueNonNullItems(collection, nameof(metadataReferences));
760
var collection =
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(metadataReferences, nameof(metadataReferences));
796
PublicContract
.RequireUniqueNonNullItems(collection, nameof(analyzerReferences));
854
var collection =
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerReferences, nameof(analyzerReferences));
880
PublicContract
.RequireUniqueNonNullItems(collection, nameof(analyzerReferences));
917
var collection =
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerReferences, nameof(analyzerReferences));
940
return AddDocumentImpl(project, documentId, name, sourceText,
PublicContract
.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders)), filePath, isGenerated: false);
959
return AddDocumentImpl(project, documentId, name, text,
PublicContract
.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders)), filePath, isGenerated);
980
return AddDocumentImpl(project, documentId, name, sourceText,
PublicContract
.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders)), filePath, isGenerated).
1213
var collection =
PublicContract
.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders));
Workspace\Solution\SolutionInfo.cs (2)
106
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(projects, nameof(projects)),
107
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerReferences, nameof(analyzerReferences)),