26 references to With
Microsoft.CodeAnalysis.Workspaces (26)
Workspace\Solution\ProjectInfo.cs (22)
336=> With(attributes: Attributes.With(id: id ?? throw new ArgumentNullException(nameof(id)))); 339=> With(attributes: Attributes.With(version: version)); 342=> With(attributes: Attributes.With(name: name ?? throw new ArgumentNullException(nameof(name)))); 345=> With(attributes: Attributes.With(assemblyName: assemblyName ?? throw new ArgumentNullException(nameof(assemblyName)))); 348=> With(attributes: Attributes.With(filePath: filePath)); 351=> With(attributes: Attributes.With(outputPath: outputFilePath)); 354=> With(attributes: Attributes.With(outputRefPath: outputRefFilePath)); 357=> With(attributes: Attributes.With(compilationOutputInfo: info)); 360=> With(attributes: Attributes.With(defaultNamespace: defaultNamespace)); 363=> With(attributes: Attributes.With(checksumAlgorithm: checksumAlgorithm)); 366=> With(attributes: Attributes.With(hasAllInformation: hasAllInformation)); 369=> With(attributes: Attributes.With(runAnalyzers: runAnalyzers)); 372=> With(compilationOptions: compilationOptions); 375=> With(parseOptions: parseOptions); 378=> With(documents: PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(documents, nameof(documents))); 381=> With(additionalDocuments: PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(additionalDocuments, nameof(additionalDocuments))); 384=> With(analyzerConfigDocuments: PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerConfigDocuments, nameof(analyzerConfigDocuments))); 387=> With(projectReferences: PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(projectReferences, nameof(projectReferences))); 390=> With(metadataReferences: PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(metadataReferences, nameof(metadataReferences))); 393=> With(analyzerReferences: PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerReferences, nameof(analyzerReferences))); 397return With(attributes: Attributes.With(telemetryId: telemetryId)); 402return With(attributes: Attributes.With(hasSdkCodeStyleAnalyzers: hasSdkCodeStyleAnalyzers));
Workspace\Solution\ProjectState.cs (4)
737return With(projectInfo: ProjectInfo.With(attributes: attributes)); 778projectInfo: ProjectInfo.With(attributes: Attributes.With(checksumAlgorithm: checksumAlgorithm, version: Version.GetNewerVersion())), 861return With(projectInfo: ProjectInfo.With(projectReferences: projectReferences).WithVersion(Version.GetNewerVersion())); 871return With(projectInfo: ProjectInfo.With(metadataReferences: metadataReferences).WithVersion(Version.GetNewerVersion()));