32 references to PublicContract
Microsoft.CodeAnalysis.Workspaces (32)
CodeFixes\FixAllOccurrences\FixAllContext.cs (2)
165
PublicContract
.RequireNonNullItems(diagnosticIds, nameof(diagnosticIds)),
201
PublicContract
.RequireNonNullItems(diagnosticIds, nameof(diagnosticIds)),
Options\Option.cs (1)
54
PublicContract
.RequireNonNullItems(storageLocations, nameof(storageLocations)).ToImmutableArray(),
Options\PerLanguageOption.cs (1)
46
PublicContract
.RequireNonNullItems(storageLocations, nameof(storageLocations)).ToImmutableArray(),
Workspace\Solution\DocumentInfo.cs (2)
91
PublicContract
.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders)),
126
=> With(attributes: Attributes.With(folders:
PublicContract
.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders))));
Workspace\Solution\ProjectInfo.cs (12)
274
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(documents, nameof(documents)),
275
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(projectReferences, nameof(projectReferences)),
276
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(metadataReferences, nameof(metadataReferences)),
277
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerReferences, nameof(analyzerReferences)),
278
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(additionalDocuments, nameof(additionalDocuments)),
279
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerConfigDocuments, nameof(analyzerConfigDocuments)),
373
=> With(documents:
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(documents, nameof(documents)));
376
=> With(additionalDocuments:
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(additionalDocuments, nameof(additionalDocuments)));
379
=> With(analyzerConfigDocuments:
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerConfigDocuments, nameof(analyzerConfigDocuments)));
382
=> With(projectReferences:
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(projectReferences, nameof(projectReferences)));
385
=> With(metadataReferences:
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(metadataReferences, nameof(metadataReferences)));
388
=> With(analyzerReferences:
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerReferences, nameof(analyzerReferences)));
Workspace\Solution\Solution.cs (12)
630
PublicContract
.RequireUniqueNonNullItems(collection, nameof(projectReferences));
692
var collection =
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(projectReferences, nameof(projectReferences));
737
PublicContract
.RequireUniqueNonNullItems(collection, nameof(metadataReferences));
795
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(metadataReferences, nameof(metadataReferences)));
839
PublicContract
.RequireUniqueNonNullItems(collection, nameof(analyzerReferences));
898
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerReferences, nameof(analyzerReferences)));
930
PublicContract
.RequireUniqueNonNullItems(collection, nameof(analyzerReferences));
979
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerReferences, nameof(analyzerReferences)));
1007
return AddDocumentImpl(project, documentId, name, sourceText,
PublicContract
.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders)), filePath, isGenerated: false);
1026
return AddDocumentImpl(project, documentId, name, text,
PublicContract
.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders)), filePath, isGenerated);
1047
return AddDocumentImpl(project, documentId, name, sourceText,
PublicContract
.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders)), filePath, isGenerated).
1332
PublicContract
.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders)));
Workspace\Solution\SolutionInfo.cs (2)
86
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(projects, nameof(projects)),
87
PublicContract
.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerReferences, nameof(analyzerReferences)));