32 references to PublicContract
Microsoft.CodeAnalysis.Workspaces (32)
CodeFixes\FixAllOccurrences\FixAllContext.cs (2)
166PublicContract.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)
89PublicContract.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders)), 124=> With(attributes: Attributes.With(folders: PublicContract.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders))));
Workspace\Solution\ProjectInfo.cs (12)
275PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(documents, nameof(documents)), 276PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(projectReferences, nameof(projectReferences)), 277PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(metadataReferences, nameof(metadataReferences)), 278PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerReferences, nameof(analyzerReferences)), 279PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(additionalDocuments, nameof(additionalDocuments)), 280PublicContract.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)
617PublicContract.RequireUniqueNonNullItems(collection, nameof(projectReferences)); 676var collection = PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(projectReferences, nameof(projectReferences)); 714PublicContract.RequireUniqueNonNullItems(collection, nameof(metadataReferences)); 760var collection = PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(metadataReferences, nameof(metadataReferences)); 796PublicContract.RequireUniqueNonNullItems(collection, nameof(analyzerReferences)); 854var collection = PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerReferences, nameof(analyzerReferences)); 880PublicContract.RequireUniqueNonNullItems(collection, nameof(analyzerReferences)); 917var collection = PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerReferences, nameof(analyzerReferences)); 940return AddDocumentImpl(project, documentId, name, sourceText, PublicContract.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders)), filePath, isGenerated: false); 959return AddDocumentImpl(project, documentId, name, text, PublicContract.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders)), filePath, isGenerated); 980return AddDocumentImpl(project, documentId, name, sourceText, PublicContract.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders)), filePath, isGenerated). 1213var collection = PublicContract.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders));
Workspace\Solution\SolutionInfo.cs (2)
106PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(projects, nameof(projects)), 107PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerReferences, nameof(analyzerReferences)),