26 references to With
Microsoft.CodeAnalysis.Workspaces (26)
Workspace\Solution\ProjectInfo.cs (14)
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)); 397return With(attributes: Attributes.With(telemetryId: telemetryId)); 402return With(attributes: Attributes.With(hasSdkCodeStyleAnalyzers: hasSdkCodeStyleAnalyzers));
Workspace\Solution\ProjectState.cs (11)
723=> (name == Name) ? this : WithNewerAttributes(Attributes.With(name: name, version: Version.GetNewerVersion())); 726=> (filePath == FilePath) ? this : WithNewerAttributes(Attributes.With(filePath: filePath, version: Version.GetNewerVersion())); 729=> (assemblyName == AssemblyName) ? this : WithNewerAttributes(Attributes.With(assemblyName: assemblyName, version: Version.GetNewerVersion())); 732=> (outputFilePath == OutputFilePath) ? this : WithNewerAttributes(Attributes.With(outputPath: outputFilePath, version: Version.GetNewerVersion())); 735=> (outputRefFilePath == OutputRefFilePath) ? this : WithNewerAttributes(Attributes.With(outputRefPath: outputRefFilePath, version: Version.GetNewerVersion())); 738=> (info == CompilationOutputInfo) ? this : WithNewerAttributes(Attributes.With(compilationOutputInfo: info, version: Version.GetNewerVersion())); 741=> (defaultNamespace == DefaultNamespace) ? this : WithNewerAttributes(Attributes.With(defaultNamespace: defaultNamespace, version: Version.GetNewerVersion())); 744=> (hasAllInformation == HasAllInformation) ? this : WithNewerAttributes(Attributes.With(hasAllInformation: hasAllInformation, version: Version.GetNewerVersion())); 747=> (runAnalyzers == RunAnalyzers) ? this : WithNewerAttributes(Attributes.With(runAnalyzers: runAnalyzers, version: Version.GetNewerVersion())); 750=> (hasSdkCodeStyleAnalyzers == HasSdkCodeStyleAnalyzers) ? this : WithNewerAttributes(Attributes.With(hasSdkCodeStyleAnalyzers: hasSdkCodeStyleAnalyzers, version: Version.GetNewerVersion())); 760projectInfo: ProjectInfo.With(attributes: Attributes.With(checksumAlgorithm: checksumAlgorithm, version: Version.GetNewerVersion())),
Workspace\Workspace.cs (1)
2037project.State.Attributes.With(version: VersionStamp.Create()),