190 references to CSharp7_1
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
CSharpCompilerTest.cs (1)
154Assert.Equal(LanguageVersion.CSharp7_1, compilationOptions.LanguageVersion);
Microsoft.CodeAnalysis.CSharp (5)
Errors\MessageID.cs (1)
628return LanguageVersion.CSharp7_1;
LanguageVersion.cs (4)
285case LanguageVersion.CSharp7_1: 319case LanguageVersion.CSharp7_1: 392case LanguageVersion.CSharp7_1: 490result = LanguageVersion.CSharp7_1;
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DefaultExpressionSyntaxExtensions.cs (1)
25if (parseOptions.LanguageVersion < LanguageVersion.CSharp7_1 ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\CSharpInferredMemberNameSimplifier.cs (1)
21if (parseOptions.LanguageVersion < LanguageVersion.CSharp7_1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (52)
src\Analyzers\CSharp\Tests\ImplementInterface\ImplementInterfaceTests.cs (1)
8236LanguageVersion = LanguageVersion.CSharp7_1,
src\Analyzers\CSharp\Tests\MakeStructReadOnly\MakeStructReadOnlyTests.cs (1)
46""", LanguageVersion.CSharp7_1);
src\Analyzers\CSharp\Tests\RemoveUnnecessaryCast\RemoveUnnecessaryCastTests.cs (13)
5770LanguageVersion = LanguageVersion.CSharp7_1, 5796LanguageVersion = LanguageVersion.CSharp7_1, 5822LanguageVersion = LanguageVersion.CSharp7_1, 5862LanguageVersion = LanguageVersion.CSharp7_1, 5914LanguageVersion = LanguageVersion.CSharp7_1, 5940LanguageVersion = LanguageVersion.CSharp7_1, 5966LanguageVersion = LanguageVersion.CSharp7_1, 6006LanguageVersion = LanguageVersion.CSharp7_1, 6046LanguageVersion = LanguageVersion.CSharp7_1, 6068LanguageVersion = LanguageVersion.CSharp7_1, 6090LanguageVersion = LanguageVersion.CSharp7_1, 6112LanguageVersion = LanguageVersion.CSharp7_1, 6144LanguageVersion = LanguageVersion.CSharp7_1,
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (2)
31LanguageVersion.CSharp7_1, 909""", ImmutableArray.Create(LanguageVersion.CSharp7_1));
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (5)
190LanguageVersion.CSharp7_1, 205new CSharpParseOptions(LanguageVersion.CSharp7_1)); 218LanguageVersion.CSharp7_1, 236new CSharpParseOptions(LanguageVersion.CSharp7_1)); 254LanguageVersion.CSharp7_1,
src\Analyzers\CSharp\Tests\UseDeconstruction\UseDeconstructionTests.cs (1)
539LanguageVersion = LanguageVersion.CSharp7_1
src\Analyzers\CSharp\Tests\UseDefaultLiteral\UseDefaultLiteralTests.cs (29)
63LanguageVersion = LanguageVersion.CSharp7_1 90LanguageVersion = LanguageVersion.CSharp7_1 117LanguageVersion = LanguageVersion.CSharp7_1 138LanguageVersion = LanguageVersion.CSharp7_1 169LanguageVersion = LanguageVersion.CSharp7_1 192LanguageVersion = LanguageVersion.CSharp7_1 219LanguageVersion = LanguageVersion.CSharp7_1 240LanguageVersion = LanguageVersion.CSharp7_1 261LanguageVersion = LanguageVersion.CSharp7_1 292LanguageVersion = LanguageVersion.CSharp7_1 316LanguageVersion = LanguageVersion.CSharp7_1 343LanguageVersion = LanguageVersion.CSharp7_1, 372LanguageVersion = LanguageVersion.CSharp7_1, 403LanguageVersion = LanguageVersion.CSharp7_1 430LanguageVersion = LanguageVersion.CSharp7_1 459LanguageVersion = LanguageVersion.CSharp7_1 486LanguageVersion = LanguageVersion.CSharp7_1 513LanguageVersion = LanguageVersion.CSharp7_1 546LanguageVersion = LanguageVersion.CSharp7_1 570LanguageVersion = LanguageVersion.CSharp7_1 594LanguageVersion = LanguageVersion.CSharp7_1 627LanguageVersion = LanguageVersion.CSharp7_1 651LanguageVersion = LanguageVersion.CSharp7_1 675LanguageVersion = LanguageVersion.CSharp7_1 708LanguageVersion = LanguageVersion.CSharp7_1 741LanguageVersion = LanguageVersion.CSharp7_1 762LanguageVersion = LanguageVersion.CSharp7_1 783LanguageVersion = LanguageVersion.CSharp7_1 810LanguageVersion = LanguageVersion.CSharp7_1
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (4)
CommandLineTests.cs (4)
1600[InlineData("7.1", LanguageVersion.CSharp7_1)] 1784InlineData(LanguageVersion.CSharp7_1, LanguageVersion.CSharp7_1), 1827InlineData("7.1", true, LanguageVersion.CSharp7_1),
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (54)
CodeGen\CodeGenAsyncMainTests.cs (33)
40var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe.WithMainTypeName("Program"), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 118var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 202var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 270var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 306var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 337var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 381var sourceCompilation = CreateEmptyCompilation(source, new[] { corCompilation.ToMetadataReference(), taskCompilation.ToMetadataReference() }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 421var sourceCompilation = CreateEmptyCompilation(source, new[] { corCompilation.ToMetadataReference(), taskCompilation.ToMetadataReference() }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 449var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 467var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 489var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 508var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 526var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 544var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 566var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 584var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 601var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 623var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 645var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 712var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 789var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 831var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 883var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 903var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 967var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 987var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 1052var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 1074CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics( 1164var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics( 1220var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics( 1411var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 1465var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 1520var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1));
CodeGen\CodeGenDeconstructTests.cs (9)
1685sourceSymbolValidator: validator, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 3343parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 8782parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 8807parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 8833parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 8868parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 8894parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 8939parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 8993parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1));
CodeGen\CodeGenTupleTest.cs (12)
3945var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 3971var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 4029var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 4050var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 4084var verifier7_1 = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25688var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25733var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25759var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25804var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25830var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25869var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25902var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1),
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (57)
EnableNullable\EnableNullableTests.cs (2)
568[InlineData(LanguageVersion.CSharp7_1)] 586LanguageVersion.CSharp7_1 => "CS8302",
RemoveUnnecessaryCast\RemoveUnnecessaryCastTests_AsTests.cs (3)
3354""", parameters: new TestParameters(new CSharpParseOptions(LanguageVersion.CSharp7_1))); 3373""", parameters: new TestParameters(new CSharpParseOptions(LanguageVersion.CSharp7_1))); 3392""", parameters: new TestParameters(new CSharpParseOptions(LanguageVersion.CSharp7_1)));
src\Analyzers\CSharp\Tests\ImplementInterface\ImplementInterfaceTests.cs (1)
8236LanguageVersion = LanguageVersion.CSharp7_1,
src\Analyzers\CSharp\Tests\MakeStructReadOnly\MakeStructReadOnlyTests.cs (1)
46""", LanguageVersion.CSharp7_1);
src\Analyzers\CSharp\Tests\RemoveUnnecessaryCast\RemoveUnnecessaryCastTests.cs (13)
5770LanguageVersion = LanguageVersion.CSharp7_1, 5796LanguageVersion = LanguageVersion.CSharp7_1, 5822LanguageVersion = LanguageVersion.CSharp7_1, 5862LanguageVersion = LanguageVersion.CSharp7_1, 5914LanguageVersion = LanguageVersion.CSharp7_1, 5940LanguageVersion = LanguageVersion.CSharp7_1, 5966LanguageVersion = LanguageVersion.CSharp7_1, 6006LanguageVersion = LanguageVersion.CSharp7_1, 6046LanguageVersion = LanguageVersion.CSharp7_1, 6068LanguageVersion = LanguageVersion.CSharp7_1, 6090LanguageVersion = LanguageVersion.CSharp7_1, 6112LanguageVersion = LanguageVersion.CSharp7_1, 6144LanguageVersion = LanguageVersion.CSharp7_1,
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (2)
31LanguageVersion.CSharp7_1, 909""", ImmutableArray.Create(LanguageVersion.CSharp7_1));
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (5)
190LanguageVersion.CSharp7_1, 205new CSharpParseOptions(LanguageVersion.CSharp7_1)); 218LanguageVersion.CSharp7_1, 236new CSharpParseOptions(LanguageVersion.CSharp7_1)); 254LanguageVersion.CSharp7_1,
src\Analyzers\CSharp\Tests\UseDeconstruction\UseDeconstructionTests.cs (1)
539LanguageVersion = LanguageVersion.CSharp7_1
src\Analyzers\CSharp\Tests\UseDefaultLiteral\UseDefaultLiteralTests.cs (29)
63LanguageVersion = LanguageVersion.CSharp7_1 90LanguageVersion = LanguageVersion.CSharp7_1 117LanguageVersion = LanguageVersion.CSharp7_1 138LanguageVersion = LanguageVersion.CSharp7_1 169LanguageVersion = LanguageVersion.CSharp7_1 192LanguageVersion = LanguageVersion.CSharp7_1 219LanguageVersion = LanguageVersion.CSharp7_1 240LanguageVersion = LanguageVersion.CSharp7_1 261LanguageVersion = LanguageVersion.CSharp7_1 292LanguageVersion = LanguageVersion.CSharp7_1 316LanguageVersion = LanguageVersion.CSharp7_1 343LanguageVersion = LanguageVersion.CSharp7_1, 372LanguageVersion = LanguageVersion.CSharp7_1, 403LanguageVersion = LanguageVersion.CSharp7_1 430LanguageVersion = LanguageVersion.CSharp7_1 459LanguageVersion = LanguageVersion.CSharp7_1 486LanguageVersion = LanguageVersion.CSharp7_1 513LanguageVersion = LanguageVersion.CSharp7_1 546LanguageVersion = LanguageVersion.CSharp7_1 570LanguageVersion = LanguageVersion.CSharp7_1 594LanguageVersion = LanguageVersion.CSharp7_1 627LanguageVersion = LanguageVersion.CSharp7_1 651LanguageVersion = LanguageVersion.CSharp7_1 675LanguageVersion = LanguageVersion.CSharp7_1 708LanguageVersion = LanguageVersion.CSharp7_1 741LanguageVersion = LanguageVersion.CSharp7_1 762LanguageVersion = LanguageVersion.CSharp7_1 783LanguageVersion = LanguageVersion.CSharp7_1 810LanguageVersion = LanguageVersion.CSharp7_1
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\BindingAsyncTests.cs (1)
3517CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics(
Semantics\RefExtensionMethodsTests.cs (6)
2292CreateCompilationWithMscorlib40AndSystemCore(code, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics( 2327parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_1), 2335parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_1), 2372CreateCompilationWithMscorlib40AndSystemCore(code, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics( 2431parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_1), 2439parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_1),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Source\ModifierTests.cs (2)
273CreateCompilation(code, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics( 307CreateCompilation(code, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Parsing\ExpressionParsingTests.cs (1)
4761var expr = this.ParseExpression(text, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1));
Parsing\RefReadonlyTests.cs (2)
45var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), options: TestOptions.UnsafeDebugDll); 90var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), options: TestOptions.UnsafeDebugDll);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestOptions.cs (1)
28public static readonly CSharpParseOptions Regular7_1 = Regular.WithLanguageVersion(LanguageVersion.CSharp7_1);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DefaultExpressionSyntaxExtensions.cs (1)
25if (parseOptions.LanguageVersion < LanguageVersion.CSharp7_1 ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\CSharpInferredMemberNameSimplifier.cs (1)
21if (parseOptions.LanguageVersion < LanguageVersion.CSharp7_1)