30 references to GetNewerVersion
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
1464
var version4 = version1.
GetNewerVersion
();
Microsoft.CodeAnalysis.Workspaces (29)
Workspace\Solution\DocumentState.cs (2)
573
return textAndVersion!.Version.
GetNewerVersion
();
578
return treeAndVersion.Version.
GetNewerVersion
();
Workspace\Solution\ProjectState.cs (23)
741
=> (name == Name) ? this : WithNewerAttributes(Attributes.With(name: name, version: Version.
GetNewerVersion
()));
744
=> (filePath == FilePath) ? this : WithNewerAttributes(Attributes.With(filePath: filePath, version: Version.
GetNewerVersion
()));
747
=> (assemblyName == AssemblyName) ? this : WithNewerAttributes(Attributes.With(assemblyName: assemblyName, version: Version.
GetNewerVersion
()));
750
=> (outputFilePath == OutputFilePath) ? this : WithNewerAttributes(Attributes.With(outputPath: outputFilePath, version: Version.
GetNewerVersion
()));
753
=> (outputRefFilePath == OutputRefFilePath) ? this : WithNewerAttributes(Attributes.With(outputRefPath: outputRefFilePath, version: Version.
GetNewerVersion
()));
756
=> (info == CompilationOutputInfo) ? this : WithNewerAttributes(Attributes.With(compilationOutputInfo: info, version: Version.
GetNewerVersion
()));
759
=> (defaultNamespace == DefaultNamespace) ? this : WithNewerAttributes(Attributes.With(defaultNamespace: defaultNamespace, version: Version.
GetNewerVersion
()));
762
=> (hasAllInformation == HasAllInformation) ? this : WithNewerAttributes(Attributes.With(hasAllInformation: hasAllInformation, version: Version.
GetNewerVersion
()));
765
=> (runAnalyzers == RunAnalyzers) ? this : WithNewerAttributes(Attributes.With(runAnalyzers: runAnalyzers, version: Version.
GetNewerVersion
()));
768
=> (hasSdkCodeStyleAnalyzers == HasSdkCodeStyleAnalyzers) ? this : WithNewerAttributes(Attributes.With(hasSdkCodeStyleAnalyzers: hasSdkCodeStyleAnalyzers, version: Version.
GetNewerVersion
()));
778
projectInfo: ProjectInfo.With(attributes: Attributes.With(checksumAlgorithm: checksumAlgorithm, version: Version.
GetNewerVersion
())),
800
.WithVersion(Version.
GetNewerVersion
()));
819
projectInfo: ProjectInfo.WithParseOptions(options).WithVersion(Version.
GetNewerVersion
()),
861
return With(projectInfo: ProjectInfo.With(projectReferences: projectReferences).WithVersion(Version.
GetNewerVersion
()));
871
return With(projectInfo: ProjectInfo.With(metadataReferences: metadataReferences).WithVersion(Version.
GetNewerVersion
()));
881
return With(projectInfo: ProjectInfo.WithAnalyzerReferences(analyzerReferences).WithVersion(Version.
GetNewerVersion
()));
892
projectInfo: ProjectInfo.WithVersion(Version.
GetNewerVersion
()),
904
projectInfo: ProjectInfo.WithVersion(Version.
GetNewerVersion
()),
923
var projectInfo = ProjectInfo.WithVersion(Version.
GetNewerVersion
());
947
projectInfo: ProjectInfo.WithVersion(Version.
GetNewerVersion
()),
958
projectInfo: ProjectInfo.WithVersion(Version.
GetNewerVersion
()),
980
projectInfo: ProjectInfo.WithVersion(Version.
GetNewerVersion
()),
1054
projectInfo: ProjectInfo.WithVersion(Version.
GetNewerVersion
()),
Workspace\Solution\SolutionState.cs (2)
407
var newSolutionAttributes = SolutionAttributes.With(version: Version.
GetNewerVersion
());
473
var newSolutionAttributes = SolutionAttributes.With(version: this.Version.
GetNewerVersion
());
Workspace\Solution\TextDocumentState.cs (1)
211
return textAndVersion.Version.
GetNewerVersion
();
Workspace\Workspace_Editor.cs (1)
491
: TextAndVersion.Create(newText, version.
GetNewerVersion
(), filePath);