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