72 references to Latest
Microsoft.CodeAnalysis.CSharp (4)
CommandLine\CSharpCompiler.cs (1)
286var latestVersion = LanguageVersion.Latest.MapSpecifiedToEffectiveVersion();
LanguageVersion.cs (3)
412case LanguageVersion.Latest: 441result = LanguageVersion.Latest; 544case LanguageVersion.Latest:
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (13)
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (2)
32LanguageVersion.Latest); 935""", ImmutableArray.Create(LanguageVersion.Latest));
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (9)
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(),
src\Analyzers\CSharp\Tests\UseConditionalExpression\UseConditionalExpressionForAssignmentTests.cs (1)
589""", LanguageVersion.Latest);
src\Analyzers\CSharp\Tests\UseInferredMemberName\UseInferredMemberNameTests.cs (1)
30CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.Latest);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (6)
CommandLineTests.cs (6)
1654LanguageVersion latestEffectiveVersion = LanguageVersion.Latest.MapSpecifiedToEffectiveVersion(); 1655Assert.NotEqual(LanguageVersion.Latest, latestEffectiveVersion); 1660Assert.Equal(LanguageVersion.Latest, parsedArgs.ParseOptions.SpecifiedLanguageVersion); 1745LanguageVersion.Latest, 1795InlineData(LanguageVersion.CSharp13, LanguageVersion.Latest), 1846InlineData("latest", true, LanguageVersion.Latest),
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
Interactive\CSharpInteractiveEvaluatorLanguageInfoProvider.cs (1)
24new(languageVersion: LanguageVersion.Latest, kind: SourceCodeKind.Script);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
Completion\CompletionProviders\DeclarationNameCompletionProviderTests.cs (5)
612[InlineData(LanguageVersion.Latest)] 642[InlineData(LanguageVersion.Latest)] 673[InlineData(LanguageVersion.Latest)] 2598[InlineData(LanguageVersion.Latest)] 2629[InlineData(LanguageVersion.Latest)]
Completion\CompletionProviders\OverrideCompletionProviderTests.cs (1)
3240var options = CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.Latest);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\CSharpDeterministicBuildCompilationTests.cs (1)
358yield return parseOptions.WithLanguageVersion(LanguageVersion.Latest);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\GetDiagnosticsTests.cs (1)
481var parseOptions = new CSharpParseOptions(LanguageVersion.Latest);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (21)
ExtractMethod\ExtractLocalFunctionTests.cs (1)
3665""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest)));
IntroduceVariable\IntroduceVariableTests.cs (6)
5787await TestAsync(code, expected, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest)); 5820await TestAsync(code, expected, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest)); 5854await TestAsync(code, expected, index: 1, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest)); 6139""", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest)); 6169""", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), index: 0); 6198""", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), index: 2);
InvertIf\InvertIfTests.cs (1)
44private static async Task TestAsync(string initial, string expected, LanguageVersion languageVersion = LanguageVersion.Latest)
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (2)
32LanguageVersion.Latest); 935""", ImmutableArray.Create(LanguageVersion.Latest));
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (9)
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(),
src\Analyzers\CSharp\Tests\UseConditionalExpression\UseConditionalExpressionForAssignmentTests.cs (1)
589""", LanguageVersion.Latest);
src\Analyzers\CSharp\Tests\UseInferredMemberName\UseInferredMemberNameTests.cs (1)
30CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.Latest);
Microsoft.CodeAnalysis.CSharp.Scripting (1)
CSharpScriptCompiler.cs (1)
18internal static readonly CSharpParseOptions DefaultParseOptions = new CSharpParseOptions(kind: SourceCodeKind.Script, languageVersion: LanguageVersion.Latest);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\RefFieldTests.cs (3)
2277[InlineData(LanguageVersion.Latest)] 26520[InlineData(LanguageVersion.Latest, TargetFramework.Net60, false, true)] 26523[InlineData(LanguageVersion.Latest, TargetFramework.Net70, true, true)]
Semantics\StructConstructorTests.cs (1)
3757[InlineData(LanguageVersion.Latest)]
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
DocumentationComments\CrefTests.cs (2)
4417var tree1 = Parse(source1, options: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Diagnose).WithLanguageVersion(LanguageVersion.Latest)); 4418var tree2 = Parse(source2, options: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None).WithLanguageVersion(LanguageVersion.Latest));
DocumentationComments\ParameterTests.cs (1)
834CreateCompilation(code, parseOptions: new CSharpParseOptions(LanguageVersion.Latest)).VerifyDiagnostics();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (9)
LexicalAndXml\PreprocessorTests.cs (1)
3225[InlineData(LanguageVersion.Latest, "latest (13.0)")]
Parsing\LanguageVersionTests.cs (1)
21Where(x => x != LanguageVersion.Latest && x != LanguageVersion.Preview && x != LanguageVersion.LatestMajor).
Parsing\ReadOnlyStructs.cs (5)
40var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll); 105var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll); 149var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll.WithAllowUnsafe(true)); 182var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll); 216var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll);
Parsing\RefStructs.cs (2)
38var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll); 81var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
ProjectSystemShim\CPS\AdditionalPropertiesTests.cs (1)
47[InlineData(LanguageVersion.Latest)]
ProjectSystemShim\LegacyProject\CSharpCompilerOptionsTests.cs (1)
172[InlineData(LanguageVersion.Latest)]