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