29 references to GetNewerVersion
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
1382
var version4 = version1.
GetNewerVersion
();
Microsoft.CodeAnalysis.Workspaces (28)
Workspace\Solution\DocumentState.cs (2)
589
return textAndVersion!.Version.
GetNewerVersion
();
594
return 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
()));
670
projectInfo: ProjectInfo.With(attributes: Attributes.With(checksumAlgorithm: checksumAlgorithm, version: Version.
GetNewerVersion
())),
687
.WithVersion(Version.
GetNewerVersion
()));
701
projectInfo: ProjectInfo.WithParseOptions(options).WithVersion(Version.
GetNewerVersion
()),
731
return With(projectInfo: ProjectInfo.With(projectReferences: projectReferences).WithVersion(Version.
GetNewerVersion
()));
741
return With(projectInfo: ProjectInfo.With(metadataReferences: metadataReferences).WithVersion(Version.
GetNewerVersion
()));
751
return With(projectInfo: ProjectInfo.WithAnalyzerReferences(analyzerReferences).WithVersion(Version.
GetNewerVersion
()));
791
projectInfo: ProjectInfo.WithVersion(Version.
GetNewerVersion
()),
800
projectInfo: ProjectInfo.WithVersion(Version.
GetNewerVersion
()),
816
var projectInfo = ProjectInfo.WithVersion(Version.
GetNewerVersion
());
837
projectInfo: ProjectInfo.WithVersion(Version.
GetNewerVersion
()),
845
projectInfo: ProjectInfo.WithVersion(Version.
GetNewerVersion
()),
861
projectInfo: ProjectInfo.WithVersion(Version.
GetNewerVersion
()),
925
projectInfo: ProjectInfo.WithVersion(Version.
GetNewerVersion
()),
Workspace\Solution\SolutionState.cs (2)
440
var newSolutionAttributes = _solutionAttributes.With(version: Version.
GetNewerVersion
());
552
var newSolutionAttributes = _solutionAttributes.With(version: this.Version.
GetNewerVersion
());
Workspace\Solution\TextDocumentState.cs (1)
232
return textAndVersion.Version.
GetNewerVersion
();
Workspace\Workspace_Editor.cs (1)
468
: TextAndVersion.Create(newText, version.
GetNewerVersion
(), filePath);