209 references to CSharp6
Microsoft.CodeAnalysis.CSharp (5)
Errors\MessageID.cs (1)
659return LanguageVersion.CSharp6;
LanguageVersion.cs (4)
283case LanguageVersion.CSharp6: 315case LanguageVersion.CSharp6: 388case LanguageVersion.CSharp6: 481result = LanguageVersion.CSharp6;
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
src\Analyzers\CSharp\Analyzers\ConvertTypeofToNameof\CSharpConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
29if (node.GetLanguageVersion() < LanguageVersion.CSharp6)
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
52if (ifStatement.SyntaxTree.Options.LanguageVersion() < LanguageVersion.CSharp6)
src\Analyzers\CSharp\Analyzers\UseAutoProperty\CSharpUseAutoPropertyAnalyzer.cs (2)
43=> compilation.LanguageVersion() >= LanguageVersion.CSharp6; 46=> compilation.LanguageVersion() >= LanguageVersion.CSharp6;
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (1)
213if (languageVersion < LanguageVersion.CSharp6)
src\Analyzers\CSharp\Analyzers\UseNullPropagation\CSharpUseNullPropagationDiagnosticAnalyzer.cs (1)
33=> compilation.LanguageVersion() >= LanguageVersion.CSharp6;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (1)
126(languageVersion >= LanguageVersion.CSharp6 && IsSupportedInCSharp6(declarationKind));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
49=> options.LanguageVersion() >= LanguageVersion.CSharp6;
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (34)
src\Analyzers\CSharp\Tests\GenerateConstructor\GenerateConstructorTests.cs (4)
3664parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 3694parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 3724parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 3754parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6));
src\Analyzers\CSharp\Tests\GenerateMethod\GenerateMethodTests.cs (4)
8775parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8807parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8839parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8871parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6));
src\Analyzers\CSharp\Tests\InlineDeclaration\CSharpInlineDeclarationTests.cs (1)
231""", new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValueAssignmentTests.cs (1)
961LanguageVersion = LanguageVersion.CSharp6,
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValueExpressionStatementTests.cs (1)
83parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6));
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (1)
30LanguageVersion.CSharp6,
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (2)
109new CSharpParseOptions(LanguageVersion.CSharp6)); 125LanguageVersion.CSharp6,
src\Analyzers\CSharp\Tests\UseConditionalExpression\UseConditionalExpressionForAssignmentTests.cs (1)
197""", LanguageVersion.CSharp6);
src\Analyzers\CSharp\Tests\UseConditionalExpression\UseConditionalExpressionForReturnTests.cs (1)
163""", parameters: new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
src\Analyzers\CSharp\Tests\UseExpressionBody\UseExpressionBodyForAccessorsAnalyzerTests.cs (2)
921await TestWithUseExpressionBody(code, fixedCode, LanguageVersion.CSharp6); 955await TestWithUseExpressionBody(code, fixedCode, LanguageVersion.CSharp6);
src\Analyzers\CSharp\Tests\UseExpressionBody\UseExpressionBodyForConstructorsAnalyzerTests.cs (2)
273await TestWithUseExpressionBody(code, fixedCode, LanguageVersion.CSharp6); 302await TestWithUseExpressionBody(code, fixedCode, LanguageVersion.CSharp6);
src\Analyzers\CSharp\Tests\UseExpressionBody\UseExpressionBodyForMethodsAnalyzerTests.cs (4)
875await TestWithUseExpressionBody(code, code, LanguageVersion.CSharp6); 895await TestWithUseExpressionBody(code, fixedCode, LanguageVersion.CSharp6); 909await TestWithUseExpressionBody(code, code, LanguageVersion.CSharp6); 941await TestWithUseExpressionBody(code, fixedCode, LanguageVersion.CSharp6);
src\Analyzers\CSharp\Tests\UseExpressionBody\UseExpressionBodyForPropertiesAnalyzerTests.cs (2)
522await TestWithUseExpressionBody(code, fixedCode, LanguageVersion.CSharp6); 557await TestWithUseExpressionBody(code, fixedCode, LanguageVersion.CSharp6);
src\Analyzers\CSharp\Tests\UseInferredMemberName\UseInferredMemberNameTests.cs (1)
87""", count: 0, parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
src\Analyzers\CSharp\Tests\UseIsNullCheck\UseIsNullCheckForCastAndEqualityOperatorTests.cs (1)
283""", parameters: new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
src\Analyzers\CSharp\Tests\UseIsNullCheck\UseIsNullCheckForReferenceEqualsTests.cs (1)
287""", parameters: new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
src\Analyzers\CSharp\Tests\UseLocalFunction\UseLocalFunctionTests.cs (1)
53""", parameters: new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
src\Analyzers\CSharp\Tests\UsePatternMatching\CSharpAsAndNullCheckTests.cs (1)
98""", new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
src\Analyzers\CSharp\Tests\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzerTests.cs (1)
77""", new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
src\Analyzers\CSharp\Tests\UseThrowExpression\UseThrowExpressionTests.cs (1)
150""", new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
src\Analyzers\CSharp\Tests\UseTupleSwap\UseTupleSwapTests.cs (1)
42LanguageVersion = LanguageVersion.CSharp6,
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (8)
CommandLineTests.cs (8)
1597[InlineData("6", LanguageVersion.CSharp6)] 1598[InlineData("6.0", LanguageVersion.CSharp6)] 1624[InlineData("7", "6", LanguageVersion.CSharp6)] 1630[InlineData("iso-2", "6", LanguageVersion.CSharp6)] 1783InlineData(LanguageVersion.CSharp6, LanguageVersion.CSharp6), 1823InlineData("6", true, LanguageVersion.CSharp6), 1824InlineData("6.0", true, LanguageVersion.CSharp6),
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (56)
CodeActions\GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersTests.cs (53)
111LanguageVersion = LanguageVersion.CSharp6, 186LanguageVersion = LanguageVersion.CSharp6, 230LanguageVersion = LanguageVersion.CSharp6, 326LanguageVersion = LanguageVersion.CSharp6, 364LanguageVersion = LanguageVersion.CSharp6, 402LanguageVersion = LanguageVersion.CSharp6, 445LanguageVersion = LanguageVersion.CSharp6, 487LanguageVersion = LanguageVersion.CSharp6, 548LanguageVersion = LanguageVersion.CSharp6, 616LanguageVersion = LanguageVersion.CSharp6, 878LanguageVersion = LanguageVersion.CSharp6, 950LanguageVersion = LanguageVersion.CSharp6, 994LanguageVersion = LanguageVersion.CSharp6, 1049LanguageVersion = LanguageVersion.CSharp6, 1102LanguageVersion = LanguageVersion.CSharp6, 1147LanguageVersion = LanguageVersion.CSharp6, 1190LanguageVersion = LanguageVersion.CSharp6, 1234LanguageVersion = LanguageVersion.CSharp6, 1286LanguageVersion = LanguageVersion.CSharp6, 1494LanguageVersion = LanguageVersion.CSharp6, 1532LanguageVersion = LanguageVersion.CSharp6, 1570LanguageVersion = LanguageVersion.CSharp6, 1614LanguageVersion = LanguageVersion.CSharp6, 1658LanguageVersion = LanguageVersion.CSharp6, 1710LanguageVersion = LanguageVersion.CSharp6, 1764LanguageVersion = LanguageVersion.CSharp6, 1816LanguageVersion = LanguageVersion.CSharp6, 1860LanguageVersion = LanguageVersion.CSharp6, 1904LanguageVersion = LanguageVersion.CSharp6, 1956LanguageVersion = LanguageVersion.CSharp6, 2000LanguageVersion = LanguageVersion.CSharp6, 2043LanguageVersion = LanguageVersion.CSharp6, 2088LanguageVersion = LanguageVersion.CSharp6, 2131LanguageVersion = LanguageVersion.CSharp6, 2166LanguageVersion = LanguageVersion.CSharp6, 2339LanguageVersion = LanguageVersion.CSharp6, 2383LanguageVersion = LanguageVersion.CSharp6, 2431LanguageVersion = LanguageVersion.CSharp6, 2486LanguageVersion = LanguageVersion.CSharp6, 2544LanguageVersion = LanguageVersion.CSharp6, 2618LanguageVersion = LanguageVersion.CSharp6, 2663LanguageVersion = LanguageVersion.CSharp6, 2870LanguageVersion = LanguageVersion.CSharp6, 3145LanguageVersion = LanguageVersion.CSharp6, 3155LanguageVersion = LanguageVersion.CSharp6, 3308LanguageVersion = LanguageVersion.CSharp6, 3373LanguageVersion = LanguageVersion.CSharp6, 3441LanguageVersion = LanguageVersion.CSharp6, 3520LanguageVersion = LanguageVersion.CSharp6, 3591LanguageVersion = LanguageVersion.CSharp6, 3666LanguageVersion = LanguageVersion.CSharp6, 3744LanguageVersion = LanguageVersion.CSharp6, 3822LanguageVersion = LanguageVersion.CSharp6,
CodeActions\InitializeParameter\AddParameterCheckTests.cs (2)
91LanguageVersion = LanguageVersion.CSharp6, 893LanguageVersion = LanguageVersion.CSharp6,
GenerateConstructors\GenerateConstructorsTests.cs (1)
1386parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6),
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (8)
CodeGen\CodeGenDeconstructTests.cs (1)
5371var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp6), options: TestOptions.DebugExe, references: s_valueTupleRefs);
CodeGen\CodeGenExprLambdaTests.cs (1)
3839CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(
CodeGen\CodeGenRefLocalTests.cs (1)
4003var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6));
CodeGen\CodeGenRefReturnTests.cs (5)
2304var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2339var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2381var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2402var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2431var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Semantics\OutVarTests.cs (3)
50var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 82var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 599var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6));
Microsoft.CodeAnalysis.CSharp.Features (7)
src\Analyzers\CSharp\Analyzers\ConvertTypeofToNameof\CSharpConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
29if (node.GetLanguageVersion() < LanguageVersion.CSharp6)
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
52if (ifStatement.SyntaxTree.Options.LanguageVersion() < LanguageVersion.CSharp6)
src\Analyzers\CSharp\Analyzers\UseAutoProperty\CSharpUseAutoPropertyAnalyzer.cs (2)
43=> compilation.LanguageVersion() >= LanguageVersion.CSharp6; 46=> compilation.LanguageVersion() >= LanguageVersion.CSharp6;
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (1)
213if (languageVersion < LanguageVersion.CSharp6)
src\Analyzers\CSharp\Analyzers\UseNullPropagation\CSharpUseNullPropagationDiagnosticAnalyzer.cs (1)
33=> compilation.LanguageVersion() >= LanguageVersion.CSharp6;
UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
46=> compilation.LanguageVersion() >= LanguageVersion.CSharp6;
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (44)
EnableNullable\EnableNullableTests.cs (2)
565[InlineData(LanguageVersion.CSharp6)] 583LanguageVersion.CSharp6 => "CS8059",
ExtractMethod\ExtractLocalFunctionTests.cs (1)
4122await TestExactActionSetOfferedAsync(code, [FeaturesResources.Extract_method], new TestParameters(parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)));
InlineTemporary\InlineTemporaryTests.cs (1)
4299[InlineData(LanguageVersion.CSharp6)]
IntroduceVariable\IntroduceVariableTests.cs (1)
5535await TestAsync(code, expected, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6));
InvertIf\InvertIfTests.cs (1)
1198""", LanguageVersion.CSharp6);
InvertLogical\InvertLogicalTests.cs (1)
19private static readonly ParseOptions CSharp6 = CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6);
SimplifyTypeNames\SimplifyTypeNamesTests.cs (1)
5124parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6));
src\Analyzers\CSharp\Tests\GenerateConstructor\GenerateConstructorTests.cs (4)
3664parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 3694parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 3724parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 3754parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6));
src\Analyzers\CSharp\Tests\GenerateMethod\GenerateMethodTests.cs (4)
8775parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8807parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8839parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8871parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6));
src\Analyzers\CSharp\Tests\InlineDeclaration\CSharpInlineDeclarationTests.cs (1)
231""", new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValueAssignmentTests.cs (1)
961LanguageVersion = LanguageVersion.CSharp6,
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValueExpressionStatementTests.cs (1)
83parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6));
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (1)
30LanguageVersion.CSharp6,
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (2)
109new CSharpParseOptions(LanguageVersion.CSharp6)); 125LanguageVersion.CSharp6,
src\Analyzers\CSharp\Tests\UseConditionalExpression\UseConditionalExpressionForAssignmentTests.cs (1)
197""", LanguageVersion.CSharp6);
src\Analyzers\CSharp\Tests\UseConditionalExpression\UseConditionalExpressionForReturnTests.cs (1)
163""", parameters: new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
src\Analyzers\CSharp\Tests\UseExpressionBody\UseExpressionBodyForAccessorsAnalyzerTests.cs (2)
921await TestWithUseExpressionBody(code, fixedCode, LanguageVersion.CSharp6); 955await TestWithUseExpressionBody(code, fixedCode, LanguageVersion.CSharp6);
src\Analyzers\CSharp\Tests\UseExpressionBody\UseExpressionBodyForConstructorsAnalyzerTests.cs (2)
273await TestWithUseExpressionBody(code, fixedCode, LanguageVersion.CSharp6); 302await TestWithUseExpressionBody(code, fixedCode, LanguageVersion.CSharp6);
src\Analyzers\CSharp\Tests\UseExpressionBody\UseExpressionBodyForMethodsAnalyzerTests.cs (4)
875await TestWithUseExpressionBody(code, code, LanguageVersion.CSharp6); 895await TestWithUseExpressionBody(code, fixedCode, LanguageVersion.CSharp6); 909await TestWithUseExpressionBody(code, code, LanguageVersion.CSharp6); 941await TestWithUseExpressionBody(code, fixedCode, LanguageVersion.CSharp6);
src\Analyzers\CSharp\Tests\UseExpressionBody\UseExpressionBodyForPropertiesAnalyzerTests.cs (2)
522await TestWithUseExpressionBody(code, fixedCode, LanguageVersion.CSharp6); 557await TestWithUseExpressionBody(code, fixedCode, LanguageVersion.CSharp6);
src\Analyzers\CSharp\Tests\UseInferredMemberName\UseInferredMemberNameTests.cs (1)
87""", count: 0, parameters: new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
src\Analyzers\CSharp\Tests\UseIsNullCheck\UseIsNullCheckForCastAndEqualityOperatorTests.cs (1)
283""", parameters: new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
src\Analyzers\CSharp\Tests\UseIsNullCheck\UseIsNullCheckForReferenceEqualsTests.cs (1)
287""", parameters: new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
src\Analyzers\CSharp\Tests\UseLocalFunction\UseLocalFunctionTests.cs (1)
53""", parameters: new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
src\Analyzers\CSharp\Tests\UsePatternMatching\CSharpAsAndNullCheckTests.cs (1)
98""", new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
src\Analyzers\CSharp\Tests\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzerTests.cs (1)
77""", new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
src\Analyzers\CSharp\Tests\UseThrowExpression\UseThrowExpressionTests.cs (1)
150""", new TestParameters(CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
src\Analyzers\CSharp\Tests\UseTupleSwap\UseTupleSwapTests.cs (1)
42LanguageVersion = LanguageVersion.CSharp6,
UseExpressionBody\Refactoring\UseExpressionBodyForPropertiesRefactoringTests.cs (1)
308}", parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6),
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzerTests.cs (1)
64""", parameters: new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\BindingAsyncTests.cs (2)
993CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(); 1022CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics();
Semantics\ConstantTests.cs (1)
3280CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(
Semantics\LocalFunctionTests.cs (1)
4012CreateCompilation(source, options: option, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(
Semantics\NameOfTests.cs (2)
618parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 637parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(
Semantics\ScriptSemanticsTests.cs (1)
485var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp6));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (10)
Compilation\CompilationAPITests.cs (6)
682syntaxTrees: new SyntaxTree[] { SyntaxFactory.ParseSyntaxTree("public class C {}", options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)) }, 692options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)) }, 703options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)) }, 716options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)) }, 2379var tree1 = SyntaxFactory.ParseSyntaxTree("", CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)); 2380var tree2 = SyntaxFactory.ParseSyntaxTree("", CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6));
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
2750var tree = SyntaxFactory.ParseSyntaxTree(test, options: new CSharpParseOptions(languageVersion: LanguageVersion.CSharp6));
Symbols\ExtensionMethodTests.cs (1)
2423var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp6));
Symbols\Source\FieldTests.cs (1)
341CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(
Symbols\SymbolErrorTests.cs (1)
1169CreateCompilationWithMscorlib46(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (15)
IncrementalParsing\IncrementalParsingTests.cs (1)
41=> Parse(text, LanguageVersion.CSharp6);
LexicalAndXml\LexicalTests.cs (1)
33_options6 = new CSharpParseOptions(languageVersion: LanguageVersion.CSharp6);
Parsing\ExpressionParsingTests.cs (1)
764var expr = this.ParseExpression(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6));
Parsing\LocalFunctionParsingTests.cs (1)
1287var file = ParseFile(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6));
Parsing\ParserErrorMessageTests.cs (6)
2739ParseAndValidate(text, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6), 2768CreateCompilationWithMscorlib46(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics( 2902ParseAndValidate(test, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6), 4626ParseAndValidate(test, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6), 5694var tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)); 6475SyntaxFactory.ParseSyntaxTree(source, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)).GetDiagnostics().Verify();
Parsing\ParsingErrorRecoveryTests.cs (2)
6228var file = this.ParseTree(text, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 6339var file = this.ParseTree(text, options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6));
Parsing\PatternParsingTests.cs (2)
50CreateCompilation(test, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics( 6578foreach (var langVersion in new[] { LanguageVersion.CSharp6, LanguageVersion.CSharp7, LanguageVersion.CSharp8 })
Parsing\SeparatedSyntaxListParsingTests.cs (1)
735var tree = UsingTree(text, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6),
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestOptions.cs (1)
26public static readonly CSharpParseOptions Regular6 = Regular.WithLanguageVersion(LanguageVersion.CSharp6);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (1)
126(languageVersion >= LanguageVersion.CSharp6 && IsSupportedInCSharp6(declarationKind));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
49=> options.LanguageVersion() >= LanguageVersion.CSharp6;
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
ProjectSystemShim\LegacyProject\CSharpCompilerOptionsTests.cs (1)
66Assert.Equal(LanguageVersion.CSharp6, options.LanguageVersion);