194 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)
630return 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 (54)
src\Analyzers\CSharp\Tests\ImplementInterface\ImplementInterfaceTests.cs (1)
8318LanguageVersion = LanguageVersion.CSharp7_1,
src\Analyzers\CSharp\Tests\MakeStructReadOnly\MakeStructReadOnlyTests.cs (1)
46""", LanguageVersion.CSharp7_1);
src\Analyzers\CSharp\Tests\RemoveUnnecessaryCast\RemoveUnnecessaryCastTests.cs (13)
5768LanguageVersion = LanguageVersion.CSharp7_1, 5793LanguageVersion = LanguageVersion.CSharp7_1, 5818LanguageVersion = LanguageVersion.CSharp7_1, 5858LanguageVersion = LanguageVersion.CSharp7_1, 5909LanguageVersion = LanguageVersion.CSharp7_1, 5934LanguageVersion = LanguageVersion.CSharp7_1, 5959LanguageVersion = LanguageVersion.CSharp7_1, 5999LanguageVersion = LanguageVersion.CSharp7_1, 6039LanguageVersion = LanguageVersion.CSharp7_1, 6060LanguageVersion = LanguageVersion.CSharp7_1, 6081LanguageVersion = LanguageVersion.CSharp7_1, 6102LanguageVersion = LanguageVersion.CSharp7_1, 6134LanguageVersion = LanguageVersion.CSharp7_1,
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (4)
25[LanguageVersion.CSharp7_1, LanguageVersion.Latest]; 808""", [LanguageVersion.CSharp7_1, LanguageVersion.CSharp10, LanguageVersion.CSharp11, LanguageVersion.Latest]); 863""", [LanguageVersion.CSharp7_1, LanguageVersion.CSharp10, LanguageVersion.CSharp11, LanguageVersion.Latest]); 953""", [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)
62LanguageVersion = LanguageVersion.CSharp7_1 89LanguageVersion = LanguageVersion.CSharp7_1 116LanguageVersion = LanguageVersion.CSharp7_1 136LanguageVersion = LanguageVersion.CSharp7_1 167LanguageVersion = LanguageVersion.CSharp7_1 189LanguageVersion = LanguageVersion.CSharp7_1 216LanguageVersion = LanguageVersion.CSharp7_1 236LanguageVersion = LanguageVersion.CSharp7_1 256LanguageVersion = LanguageVersion.CSharp7_1 287LanguageVersion = LanguageVersion.CSharp7_1 310LanguageVersion = LanguageVersion.CSharp7_1 337LanguageVersion = LanguageVersion.CSharp7_1, 366LanguageVersion = LanguageVersion.CSharp7_1, 397LanguageVersion = LanguageVersion.CSharp7_1 424LanguageVersion = LanguageVersion.CSharp7_1 453LanguageVersion = LanguageVersion.CSharp7_1 479LanguageVersion = LanguageVersion.CSharp7_1 505LanguageVersion = LanguageVersion.CSharp7_1 538LanguageVersion = LanguageVersion.CSharp7_1 561LanguageVersion = LanguageVersion.CSharp7_1 584LanguageVersion = LanguageVersion.CSharp7_1 617LanguageVersion = LanguageVersion.CSharp7_1 640LanguageVersion = LanguageVersion.CSharp7_1 663LanguageVersion = LanguageVersion.CSharp7_1 696LanguageVersion = LanguageVersion.CSharp7_1 729LanguageVersion = LanguageVersion.CSharp7_1 749LanguageVersion = LanguageVersion.CSharp7_1 769LanguageVersion = LanguageVersion.CSharp7_1 796LanguageVersion = LanguageVersion.CSharp7_1
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (4)
CommandLineTests.cs (4)
1601[InlineData("7.1", LanguageVersion.CSharp7_1)] 1785InlineData(LanguageVersion.CSharp7_1, LanguageVersion.CSharp7_1), 1828InlineData("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 (59)
EnableNullable\EnableNullableTests.cs (2)
567[InlineData(LanguageVersion.CSharp7_1)] 585LanguageVersion.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)
8318LanguageVersion = LanguageVersion.CSharp7_1,
src\Analyzers\CSharp\Tests\MakeStructReadOnly\MakeStructReadOnlyTests.cs (1)
46""", LanguageVersion.CSharp7_1);
src\Analyzers\CSharp\Tests\RemoveUnnecessaryCast\RemoveUnnecessaryCastTests.cs (13)
5768LanguageVersion = LanguageVersion.CSharp7_1, 5793LanguageVersion = LanguageVersion.CSharp7_1, 5818LanguageVersion = LanguageVersion.CSharp7_1, 5858LanguageVersion = LanguageVersion.CSharp7_1, 5909LanguageVersion = LanguageVersion.CSharp7_1, 5934LanguageVersion = LanguageVersion.CSharp7_1, 5959LanguageVersion = LanguageVersion.CSharp7_1, 5999LanguageVersion = LanguageVersion.CSharp7_1, 6039LanguageVersion = LanguageVersion.CSharp7_1, 6060LanguageVersion = LanguageVersion.CSharp7_1, 6081LanguageVersion = LanguageVersion.CSharp7_1, 6102LanguageVersion = LanguageVersion.CSharp7_1, 6134LanguageVersion = LanguageVersion.CSharp7_1,
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (4)
25[LanguageVersion.CSharp7_1, LanguageVersion.Latest]; 808""", [LanguageVersion.CSharp7_1, LanguageVersion.CSharp10, LanguageVersion.CSharp11, LanguageVersion.Latest]); 863""", [LanguageVersion.CSharp7_1, LanguageVersion.CSharp10, LanguageVersion.CSharp11, LanguageVersion.Latest]); 953""", [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)
62LanguageVersion = LanguageVersion.CSharp7_1 89LanguageVersion = LanguageVersion.CSharp7_1 116LanguageVersion = LanguageVersion.CSharp7_1 136LanguageVersion = LanguageVersion.CSharp7_1 167LanguageVersion = LanguageVersion.CSharp7_1 189LanguageVersion = LanguageVersion.CSharp7_1 216LanguageVersion = LanguageVersion.CSharp7_1 236LanguageVersion = LanguageVersion.CSharp7_1 256LanguageVersion = LanguageVersion.CSharp7_1 287LanguageVersion = LanguageVersion.CSharp7_1 310LanguageVersion = LanguageVersion.CSharp7_1 337LanguageVersion = LanguageVersion.CSharp7_1, 366LanguageVersion = LanguageVersion.CSharp7_1, 397LanguageVersion = LanguageVersion.CSharp7_1 424LanguageVersion = LanguageVersion.CSharp7_1 453LanguageVersion = LanguageVersion.CSharp7_1 479LanguageVersion = LanguageVersion.CSharp7_1 505LanguageVersion = LanguageVersion.CSharp7_1 538LanguageVersion = LanguageVersion.CSharp7_1 561LanguageVersion = LanguageVersion.CSharp7_1 584LanguageVersion = LanguageVersion.CSharp7_1 617LanguageVersion = LanguageVersion.CSharp7_1 640LanguageVersion = LanguageVersion.CSharp7_1 663LanguageVersion = LanguageVersion.CSharp7_1 696LanguageVersion = LanguageVersion.CSharp7_1 729LanguageVersion = LanguageVersion.CSharp7_1 749LanguageVersion = LanguageVersion.CSharp7_1 769LanguageVersion = LanguageVersion.CSharp7_1 796LanguageVersion = 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)