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