45 references to MapSpecifiedToEffectiveVersion
Microsoft.CodeAnalysis.CSharp (8)
CommandLine\CSharpCompiler.cs (2)
285var defaultVersion = LanguageVersion.Default.MapSpecifiedToEffectiveVersion(); 286var latestVersion = LanguageVersion.Latest.MapSpecifiedToEffectiveVersion();
Compilation\CSharpCompilation.cs (2)
545return result ?? LanguageVersion.Default.MapSpecifiedToEffectiveVersion(); 4743Debug.Assert(LanguageVersion == LanguageVersion.MapSpecifiedToEffectiveVersion());
CSharpParseOptions.cs (2)
72this.LanguageVersion = languageVersion.MapSpecifiedToEffectiveVersion(); 106var effectiveLanguageVersion = version.MapSpecifiedToEffectiveVersion();
Errors\MessageID.cs (1)
461return requiredVersion == LanguageVersion.Preview.MapSpecifiedToEffectiveVersion()
Parser\DirectiveParser.cs (1)
335var effective = specified.MapSpecifiedToEffectiveVersion();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UpgradeProject\CSharpUpgradeProjectCodeFixProvider.cs (1)
109var mappedVersion = parsedNewVersion.MapSpecifiedToEffectiveVersion();
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (11)
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (11)
153#error version:[|{{LanguageVersion.Latest.MapSpecifiedToEffectiveVersion().ToDisplayString()}}|] 156LanguageVersion.Latest.MapSpecifiedToEffectiveVersion(), 201#error version:[|{{LanguageVersion.Latest.MapSpecifiedToEffectiveVersion().ToDisplayString()}}|] 204LanguageVersion.Latest.MapSpecifiedToEffectiveVersion(), 266#error version:[|{{LanguageVersion.Latest.MapSpecifiedToEffectiveVersion().ToDisplayString()}}|] 269LanguageVersion.Latest.MapSpecifiedToEffectiveVersion(), 337#error version:[|{{LanguageVersion.Latest.MapSpecifiedToEffectiveVersion().ToDisplayString()}}|] 340LanguageVersion.Latest.MapSpecifiedToEffectiveVersion(), 354LanguageVersion.Latest.MapSpecifiedToEffectiveVersion(), 610var defaultVersion = LanguageVersion.Default.MapSpecifiedToEffectiveVersion().ToDisplayString(); 664var defaultEffectiveVersion = LanguageVersion.Default.MapSpecifiedToEffectiveVersion().ToDisplayString();
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
1640LanguageVersion defaultEffectiveVersion = LanguageVersion.Default.MapSpecifiedToEffectiveVersion(); 1653LanguageVersion latestEffectiveVersion = LanguageVersion.Latest.MapSpecifiedToEffectiveVersion(); 1800Assert.Equal(expectedMappedVersion, input.MapSpecifiedToEffectiveVersion());
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Completion\CompletionProviders\DeclarationNameCompletionProviderTests.cs (4)
630if (languageVersion.MapSpecifiedToEffectiveVersion() >= LanguageVersion.CSharp8) 661if (languageVersion.MapSpecifiedToEffectiveVersion() >= LanguageVersion.CSharp8) 692if (languageVersion.MapSpecifiedToEffectiveVersion() >= LanguageVersion.CSharp8) 2616if (languageVersion.MapSpecifiedToEffectiveVersion() >= LanguageVersion.CSharp8)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
PDB\CSharpDeterministicBuildCompilationTests.cs (3)
148parseOptions.LanguageVersion.MapSpecifiedToEffectiveVersion().ToDisplayString(), 211parseOptions.LanguageVersion.MapSpecifiedToEffectiveVersion().ToDisplayString(), 272parseOptions.LanguageVersion.MapSpecifiedToEffectiveVersion().ToDisplayString(),
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\UpgradeProject\CSharpUpgradeProjectCodeFixProvider.cs (1)
109var mappedVersion = parsedNewVersion.MapSpecifiedToEffectiveVersion();
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (11)
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (11)
153#error version:[|{{LanguageVersion.Latest.MapSpecifiedToEffectiveVersion().ToDisplayString()}}|] 156LanguageVersion.Latest.MapSpecifiedToEffectiveVersion(), 201#error version:[|{{LanguageVersion.Latest.MapSpecifiedToEffectiveVersion().ToDisplayString()}}|] 204LanguageVersion.Latest.MapSpecifiedToEffectiveVersion(), 266#error version:[|{{LanguageVersion.Latest.MapSpecifiedToEffectiveVersion().ToDisplayString()}}|] 269LanguageVersion.Latest.MapSpecifiedToEffectiveVersion(), 337#error version:[|{{LanguageVersion.Latest.MapSpecifiedToEffectiveVersion().ToDisplayString()}}|] 340LanguageVersion.Latest.MapSpecifiedToEffectiveVersion(), 354LanguageVersion.Latest.MapSpecifiedToEffectiveVersion(), 610var defaultVersion = LanguageVersion.Default.MapSpecifiedToEffectiveVersion().ToDisplayString(); 664var defaultEffectiveVersion = LanguageVersion.Default.MapSpecifiedToEffectiveVersion().ToDisplayString();
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsService.cs (1)
46if (semanticModel.Compilation.LanguageVersion().MapSpecifiedToEffectiveVersion() >= LanguageVersion.CSharp8)
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
CSharpDeterministicKeyBuilderTests.cs (1)
328var effective = languageVersion.MapSpecifiedToEffectiveVersion();
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
1630await AssertCSParseOptionsAsync(CS.LanguageVersion.CSharp7_3.MapSpecifiedToEffectiveVersion(), options => options.LanguageVersion);