29 references to GetNewerVersion
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
1382var version4 = version1.GetNewerVersion();
Microsoft.CodeAnalysis.Workspaces (28)
Workspace\Solution\DocumentState.cs (2)
589return textAndVersion!.Version.GetNewerVersion(); 594return treeAndVersion.Version.GetNewerVersion();
Workspace\Solution\ProjectState.cs (22)
636=> (name == Name) ? this : WithNewerAttributes(Attributes.With(name: name, version: Version.GetNewerVersion())); 639=> (filePath == FilePath) ? this : WithNewerAttributes(Attributes.With(filePath: filePath, version: Version.GetNewerVersion())); 642=> (assemblyName == AssemblyName) ? this : WithNewerAttributes(Attributes.With(assemblyName: assemblyName, version: Version.GetNewerVersion())); 645=> (outputFilePath == OutputFilePath) ? this : WithNewerAttributes(Attributes.With(outputPath: outputFilePath, version: Version.GetNewerVersion())); 648=> (outputRefFilePath == OutputRefFilePath) ? this : WithNewerAttributes(Attributes.With(outputRefPath: outputRefFilePath, version: Version.GetNewerVersion())); 651=> (info == CompilationOutputInfo) ? this : WithNewerAttributes(Attributes.With(compilationOutputInfo: info, version: Version.GetNewerVersion())); 654=> (defaultNamespace == DefaultNamespace) ? this : WithNewerAttributes(Attributes.With(defaultNamespace: defaultNamespace, version: Version.GetNewerVersion())); 657=> (hasAllInformation == HasAllInformation) ? this : WithNewerAttributes(Attributes.With(hasAllInformation: hasAllInformation, version: Version.GetNewerVersion())); 660=> (runAnalyzers == RunAnalyzers) ? this : WithNewerAttributes(Attributes.With(runAnalyzers: runAnalyzers, version: Version.GetNewerVersion())); 670projectInfo: ProjectInfo.With(attributes: Attributes.With(checksumAlgorithm: checksumAlgorithm, version: Version.GetNewerVersion())), 687.WithVersion(Version.GetNewerVersion())); 701projectInfo: ProjectInfo.WithParseOptions(options).WithVersion(Version.GetNewerVersion()), 731return With(projectInfo: ProjectInfo.With(projectReferences: projectReferences).WithVersion(Version.GetNewerVersion())); 741return With(projectInfo: ProjectInfo.With(metadataReferences: metadataReferences).WithVersion(Version.GetNewerVersion())); 751return With(projectInfo: ProjectInfo.WithAnalyzerReferences(analyzerReferences).WithVersion(Version.GetNewerVersion())); 791projectInfo: ProjectInfo.WithVersion(Version.GetNewerVersion()), 800projectInfo: ProjectInfo.WithVersion(Version.GetNewerVersion()), 816var projectInfo = ProjectInfo.WithVersion(Version.GetNewerVersion()); 837projectInfo: ProjectInfo.WithVersion(Version.GetNewerVersion()), 845projectInfo: ProjectInfo.WithVersion(Version.GetNewerVersion()), 861projectInfo: ProjectInfo.WithVersion(Version.GetNewerVersion()), 925projectInfo: ProjectInfo.WithVersion(Version.GetNewerVersion()),
Workspace\Solution\SolutionState.cs (2)
440var newSolutionAttributes = _solutionAttributes.With(version: Version.GetNewerVersion()); 552var newSolutionAttributes = _solutionAttributes.With(version: this.Version.GetNewerVersion());
Workspace\Solution\TextDocumentState.cs (1)
232return textAndVersion.Version.GetNewerVersion();
Workspace\Workspace_Editor.cs (1)
468: TextAndVersion.Create(newText, version.GetNewerVersion(), filePath);