85 references to CSharp5
Microsoft.CodeAnalysis.CSharp (5)
Errors\MessageID.cs (1)
663
return LanguageVersion.
CSharp5
;
LanguageVersion.cs (4)
282
case LanguageVersion.
CSharp5
:
313
case LanguageVersion.
CSharp5
:
386
case LanguageVersion.
CSharp5
:
476
result = LanguageVersion.
CSharp5
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (14)
src\Analyzers\CSharp\Tests\ImplementInterface\ImplementInterfaceTests.cs (1)
11024
LanguageVersion = LanguageVersion.
CSharp5
,
src\Analyzers\CSharp\Tests\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessTests.cs (1)
174
""", new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
)));
src\Analyzers\CSharp\Tests\RemoveUnnecessaryImports\RemoveUnnecessaryImportsTests.cs (2)
1030
LanguageVersion = LanguageVersion.
CSharp5
,
1111
LanguageVersion = LanguageVersion.
CSharp5
,
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (1)
31
LanguageVersion.
CSharp5
,
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (2)
126
new CSharpParseOptions(LanguageVersion.
CSharp5
));
142
LanguageVersion.
CSharp5
,
src\Analyzers\CSharp\Tests\UseAutoProperty\UseAutoPropertyTests.cs (3)
449
CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
));
469
""", new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
)));
515
""", new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
)));
src\Analyzers\CSharp\Tests\UseCollectionInitializer\UseCollectionInitializerTests.cs (1)
343
""", LanguageVersion.
CSharp5
);
src\Analyzers\CSharp\Tests\UseExpressionBody\UseExpressionBodyForMethodsAnalyzerTests.cs (1)
862
await TestWithUseExpressionBody(code, fixedCode, LanguageVersion.
CSharp5
);
src\Analyzers\CSharp\Tests\UseNullPropagation\UseNullPropagationTests.cs (2)
298
""", LanguageVersion.
CSharp5
);
316
""", LanguageVersion.
CSharp5
);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (6)
CommandLineTests.cs (6)
1595
[InlineData("5", LanguageVersion.
CSharp5
)]
1596
[InlineData("5.0", LanguageVersion.
CSharp5
)]
1782
InlineData(LanguageVersion.
CSharp5
, LanguageVersion.
CSharp5
),
1820
InlineData("5", true, LanguageVersion.
CSharp5
),
1821
InlineData("5.0", true, LanguageVersion.
CSharp5
),
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (17)
EnableNullable\EnableNullableTests.cs (2)
564
[InlineData(LanguageVersion.
CSharp5
)]
582
LanguageVersion.
CSharp5
=> "CS8026",
ExtractMethod\ExtractLocalFunctionTests.cs (1)
4138
await TestExactActionSetOfferedAsync(code, [FeaturesResources.Extract_method], new TestParameters(parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.
CSharp5
)));
src\Analyzers\CSharp\Tests\ImplementInterface\ImplementInterfaceTests.cs (1)
11024
LanguageVersion = LanguageVersion.
CSharp5
,
src\Analyzers\CSharp\Tests\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessTests.cs (1)
174
""", new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
)));
src\Analyzers\CSharp\Tests\RemoveUnnecessaryImports\RemoveUnnecessaryImportsTests.cs (2)
1030
LanguageVersion = LanguageVersion.
CSharp5
,
1111
LanguageVersion = LanguageVersion.
CSharp5
,
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (1)
31
LanguageVersion.
CSharp5
,
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (2)
126
new CSharpParseOptions(LanguageVersion.
CSharp5
));
142
LanguageVersion.
CSharp5
,
src\Analyzers\CSharp\Tests\UseAutoProperty\UseAutoPropertyTests.cs (3)
449
CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
));
469
""", new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
)));
515
""", new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
)));
src\Analyzers\CSharp\Tests\UseCollectionInitializer\UseCollectionInitializerTests.cs (1)
343
""", LanguageVersion.
CSharp5
);
src\Analyzers\CSharp\Tests\UseExpressionBody\UseExpressionBodyForMethodsAnalyzerTests.cs (1)
862
await TestWithUseExpressionBody(code, fixedCode, LanguageVersion.
CSharp5
);
src\Analyzers\CSharp\Tests\UseNullPropagation\UseNullPropagationTests.cs (2)
298
""", LanguageVersion.
CSharp5
);
316
""", LanguageVersion.
CSharp5
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Semantics\AwaitExpressionTests.cs (1)
154
var tree = Parse(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
));
Semantics\BindingAsyncTests.cs (2)
985
CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.
CSharp5
)).VerifyDiagnostics(
1017
CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.
CSharp5
)).VerifyDiagnostics(
Semantics\DynamicTests.cs (2)
3107
CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(source, options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.
CSharp5
)) }).VerifyDiagnostics(
3224
CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(source, options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.
CSharp5
)) }).VerifyDiagnostics(
Semantics\InterpolationTests.cs (2)
18255
CreateCompilation(text, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
)).VerifyDiagnostics(
18274
CreateCompilation(text, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
)).VerifyDiagnostics(
Semantics\NameOfTests.cs (3)
520
", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.
CSharp5
));
594
parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.
CSharp5
));
659
parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.
CSharp5
)).VerifyDiagnostics(
Semantics\RawInterpolationTests.cs (2)
1300
CreateCompilation(text, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
)).VerifyDiagnostics(
1319
CreateCompilation(text, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
)).VerifyDiagnostics(
Semantics\SemanticErrorTests.cs (2)
24132
CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.
CSharp5
)).VerifyDiagnostics(
24555
parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.
CSharp5
)).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Compilation\CompilationAPITests.cs (1)
2381
var tree3 = SyntaxFactory.ParseSyntaxTree("", CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
));
Symbols\SymbolErrorTests.cs (4)
2114
var tree = Parse(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
));
2541
var comp = CreateCompilation(Parse(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
)));
10944
var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.
CSharp5
));
17945
Parse(source, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
)));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (21)
IncrementalParsing\ChangingAsync.cs (2)
61
ParseAndValidate(text, validator, TestOptions.Regular.WithLanguageVersion(LanguageVersion.
CSharp5
));
62
ParseAndValidate(text, validator, TestOptions.Script.WithLanguageVersion(LanguageVersion.
CSharp5
));
Parsing\AsyncParsingTests.cs (2)
21
return SyntaxFactory.ParseSyntaxTree(text, options: (options ?? TestOptions.Regular).WithLanguageVersion(LanguageVersion.
CSharp5
));
26
return SyntaxFactory.ParseExpression(text, options: (options ?? TestOptions.Regular).WithLanguageVersion(LanguageVersion.
CSharp5
));
Parsing\ExpressionParsingTests.cs (1)
731
var expr = this.ParseExpression(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
));
Parsing\ParserErrorMessageTests.cs (16)
5439
var tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
));
5461
var tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
));
5526
var tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
));
5545
var tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
));
5588
var tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
));
5623
var tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
));
5657
var tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
));
5697
tree = Parse(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
));
5946
var tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
));
5964
var tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
));
5977
var tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
));
6006
var tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
));
6036
var tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
));
6078
var tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
));
6365
var tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
));
6477
SyntaxFactory.ParseSyntaxTree(source, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.
CSharp5
)).GetDiagnostics().Verify();
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestOptions.cs (1)
25
public static readonly CSharpParseOptions Regular5 = Regular.WithLanguageVersion(LanguageVersion.
CSharp5
);
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SolutionTests\SolutionTests.cs (2)
1176
parseOptions: new CSharpParseOptions(CS.LanguageVersion.
CSharp5
),
1350
parseOptions: new CSharpParseOptions(CS.LanguageVersion.
CSharp5
),