914 references to CSharp10
Microsoft.CodeAnalysis.CSharp (5)
Errors\MessageID.cs (1)
543return LanguageVersion.CSharp10;
LanguageVersion.cs (4)
290case LanguageVersion.CSharp10: 329case LanguageVersion.CSharp10: 402case LanguageVersion.CSharp10: 513result = LanguageVersion.CSharp10;
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertNamespaceAnalysis.cs (1)
56if (version < LanguageVersion.CSharp10)
src\Analyzers\CSharp\Analyzers\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternDiagnosticAnalyzer.cs (1)
45if (compilationContext.Compilation.LanguageVersion() < LanguageVersion.CSharp10)
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
128if (options.LanguageVersion() < LanguageVersion.CSharp10)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\UsePatternMatchingHelpers.cs (1)
46requiredLanguageVersion = LanguageVersion.CSharp10;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\LanguageVersionExtensions.cs (1)
22=> languageVersion >= LanguageVersion.CSharp10;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
60=> options.LanguageVersion() >= LanguageVersion.CSharp10; 66=> options.LanguageVersion() >= LanguageVersion.CSharp10;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (1)
110info.LanguageVersion >= LanguageVersion.CSharp10)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (138)
src\Analyzers\CSharp\Tests\AddAccessibilityModifiers\AddAccessibilityModifiersTests.cs (1)
568LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\ConvertNamespace\ConvertToBlockScopedNamespaceAnalyzerTests.cs (19)
84LanguageVersion = LanguageVersion.CSharp10, 106LanguageVersion = LanguageVersion.CSharp10, 133LanguageVersion = LanguageVersion.CSharp10, 160LanguageVersion = LanguageVersion.CSharp10, 189LanguageVersion = LanguageVersion.CSharp10, 216LanguageVersion = LanguageVersion.CSharp10, 245LanguageVersion = LanguageVersion.CSharp10, 272LanguageVersion = LanguageVersion.CSharp10, 306LanguageVersion = LanguageVersion.CSharp10, 339LanguageVersion = LanguageVersion.CSharp10, 364LanguageVersion = LanguageVersion.CSharp10, 388LanguageVersion = LanguageVersion.CSharp10, 413LanguageVersion = LanguageVersion.CSharp10, 437LanguageVersion = LanguageVersion.CSharp10, 465LanguageVersion = LanguageVersion.CSharp10, 495LanguageVersion = LanguageVersion.CSharp10, 523LanguageVersion = LanguageVersion.CSharp10, 552LanguageVersion = LanguageVersion.CSharp10, 582LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\ConvertNamespace\ConvertToFileScopedNamespaceAnalyzerTests.cs (33)
51LanguageVersion = LanguageVersion.CSharp10, 72LanguageVersion = LanguageVersion.CSharp10, 93LanguageVersion = LanguageVersion.CSharp10, 116LanguageVersion = LanguageVersion.CSharp10, 138LanguageVersion = LanguageVersion.CSharp10, 159LanguageVersion = LanguageVersion.CSharp10, 180LanguageVersion = LanguageVersion.CSharp10, 212LanguageVersion = LanguageVersion.CSharp10, 236LanguageVersion = LanguageVersion.CSharp10, 264LanguageVersion = LanguageVersion.CSharp10, 294LanguageVersion = LanguageVersion.CSharp10, 323LanguageVersion = LanguageVersion.CSharp10, 351LanguageVersion = LanguageVersion.CSharp10, 381LanguageVersion = LanguageVersion.CSharp10, 411LanguageVersion = LanguageVersion.CSharp10, 452LanguageVersion = LanguageVersion.CSharp10, 486LanguageVersion = LanguageVersion.CSharp10, 520LanguageVersion = LanguageVersion.CSharp10, 568LanguageVersion = LanguageVersion.CSharp10, 616LanguageVersion = LanguageVersion.CSharp10, 666LanguageVersion = LanguageVersion.CSharp10, 850LanguageVersion = LanguageVersion.CSharp10, 871LanguageVersion = LanguageVersion.CSharp10, 899LanguageVersion = LanguageVersion.CSharp10, 920LanguageVersion = LanguageVersion.CSharp10, 948LanguageVersion = LanguageVersion.CSharp10, 969LanguageVersion = LanguageVersion.CSharp10, 999LanguageVersion = LanguageVersion.CSharp10, 1031LanguageVersion = LanguageVersion.CSharp10, 1060LanguageVersion = LanguageVersion.CSharp10, 1090LanguageVersion = LanguageVersion.CSharp10, 1555LanguageVersion = LanguageVersion.CSharp10, 1576LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\ConvertToRecord\ConvertToRecordCodeFixTests.cs (1)
154LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\ConvertTypeOfToNameOf\ConvertTypeOfToNameOfTests.cs (1)
361LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\FixReturnType\FixReturnTypeTests.cs (1)
224LanguageVersion = LanguageVersion.CSharp10
src\Analyzers\CSharp\Tests\GenerateDefaultConstructors\GenerateDefaultConstructorsTests.cs (2)
55LanguageVersion = LanguageVersion.CSharp10, 80LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\MakeMemberRequired\MakeMemberRequiredTests.cs (1)
454LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\MakeStructMemberReadOnly\MakeStructMemberReadOnlyTests.cs (1)
999LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\MakeTypePartial\MakeTypePartialTests.cs (11)
56LanguageVersion = LanguageVersion.CSharp10 88LanguageVersion = LanguageVersion.CSharp10 122LanguageVersion = LanguageVersion.CSharp10 162LanguageVersion = LanguageVersion.CSharp10 198LanguageVersion = LanguageVersion.CSharp10 226LanguageVersion = LanguageVersion.CSharp10 260LanguageVersion = LanguageVersion.CSharp10 302LanguageVersion = LanguageVersion.CSharp10 341LanguageVersion = LanguageVersion.CSharp10, 350LanguageVersion = LanguageVersion.CSharp10, 379LanguageVersion = LanguageVersion.CSharp10
src\Analyzers\CSharp\Tests\MatchFolderAndNamespace\CSharpMatchFolderAndNamespaceTests.cs (2)
55LanguageVersion = LanguageVersion.CSharp10, 884LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\MisplacedUsingDirectives\MisplacedUsingDirectivesTests.cs (1)
88initialMarkup, expectedMarkup, options: options, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp10));
src\Analyzers\CSharp\Tests\RemoveUnnecessaryCast\RemoveUnnecessaryCastTests.cs (37)
6157LanguageVersion = LanguageVersion.CSharp10, 6180LanguageVersion = LanguageVersion.CSharp10, 11629LanguageVersion = LanguageVersion.CSharp10, 12123LanguageVersion = LanguageVersion.CSharp10, 12159LanguageVersion = LanguageVersion.CSharp10, 12183LanguageVersion = LanguageVersion.CSharp10, 12205LanguageVersion = LanguageVersion.CSharp10, 12226LanguageVersion = LanguageVersion.CSharp10, 12247LanguageVersion = LanguageVersion.CSharp10, 12270LanguageVersion = LanguageVersion.CSharp10, 12292LanguageVersion = LanguageVersion.CSharp10, 12308LanguageVersion = LanguageVersion.CSharp10, 12330LanguageVersion = LanguageVersion.CSharp10, 12354LanguageVersion = LanguageVersion.CSharp10, 12373LanguageVersion = LanguageVersion.CSharp10, 12392LanguageVersion = LanguageVersion.CSharp10, 12416LanguageVersion = LanguageVersion.CSharp10, 12439LanguageVersion = LanguageVersion.CSharp10, 12470LanguageVersion = LanguageVersion.CSharp10, 12520LanguageVersion = LanguageVersion.CSharp10, 12561LanguageVersion = LanguageVersion.CSharp10, 12588LanguageVersion = LanguageVersion.CSharp10, 12635LanguageVersion = LanguageVersion.CSharp10, 12680LanguageVersion = LanguageVersion.CSharp10, 12699LanguageVersion = LanguageVersion.CSharp10, 12730LanguageVersion = LanguageVersion.CSharp10, 12761LanguageVersion = LanguageVersion.CSharp10, 12792LanguageVersion = LanguageVersion.CSharp10, 12823LanguageVersion = LanguageVersion.CSharp10, 12854LanguageVersion = LanguageVersion.CSharp10, 12885LanguageVersion = LanguageVersion.CSharp10, 12904LanguageVersion = LanguageVersion.CSharp10, 12930LanguageVersion = LanguageVersion.CSharp10, 12966LanguageVersion = LanguageVersion.CSharp10, 13001LanguageVersion = LanguageVersion.CSharp10, 13020LanguageVersion = LanguageVersion.CSharp10, 13075LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\RemoveUnnecessaryImports\RemoveUnnecessaryImportsTests.cs (3)
478LanguageVersion = LanguageVersion.CSharp10, 631LanguageVersion = LanguageVersion.CSharp10, 2103LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\RemoveUnnecessaryLambdaExpression\RemoveUnnecessaryLambdaExpressionTests.cs (1)
65""", LanguageVersion.CSharp10);
src\Analyzers\CSharp\Tests\TransposeRecordKeyword\TransposeRecordKeywordTests.cs (10)
27LanguageVersion = LanguageVersion.CSharp10 38LanguageVersion = LanguageVersion.CSharp10 49LanguageVersion = LanguageVersion.CSharp10 66LanguageVersion = LanguageVersion.CSharp10 83LanguageVersion = LanguageVersion.CSharp10 100LanguageVersion = LanguageVersion.CSharp10 115LanguageVersion = LanguageVersion.CSharp10 136LanguageVersion = LanguageVersion.CSharp10 161LanguageVersion = LanguageVersion.CSharp10 182LanguageVersion = LanguageVersion.CSharp10
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (6)
1090expected: LanguageVersion.CSharp10, 1179LanguageVersion.CSharp10, 1198expected: LanguageVersion.CSharp10, 1247new CSharpParseOptions(LanguageVersion.CSharp10)); 1261new CSharpParseOptions(LanguageVersion.CSharp10)); 1275new CSharpParseOptions(LanguageVersion.CSharp10));
src\Analyzers\CSharp\Tests\UseLocalFunction\UseLocalFunctionTests.cs (1)
4165parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp10));
src\Analyzers\CSharp\Tests\UsePatternMatching\CSharpAsAndMemberAccessTests.cs (5)
337LanguageVersion = LanguageVersion.CSharp10, 420LanguageVersion = LanguageVersion.CSharp10, 737LanguageVersion = LanguageVersion.CSharp10, 809LanguageVersion = LanguageVersion.CSharp10, 871LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\UseUtf8StringLiteral\UseUtf8StringLiteralTests.cs (1)
66LanguageVersion = LanguageVersion.CSharp10
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (4)
CommandLineTests.cs (4)
1790InlineData(LanguageVersion.CSharp10, LanguageVersion.CSharp10), 1835InlineData("10", true, LanguageVersion.CSharp10), 1836InlineData("10.0", true, LanguageVersion.CSharp10),
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
ConvertNamespace\ConvertNamespaceCommandHandler.cs (1)
141if (!ConvertNamespaceAnalysis.CanOfferUseFileScoped(s_fileScopedNamespacePreferenceOption, (CompilationUnitSyntax)parsedDocument.Root, namespaceDecl, forAnalyzer: true, LanguageVersion.CSharp10))
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (11)
CodeActions\GenerateType\GenerateTypeTests.cs (1)
4956parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp10),
CodeActions\InitializeParameter\AddParameterCheckTests.cs (1)
2918[InlineData(LanguageVersion.CSharp10)]
CodeActions\MoveStaticMembers\CSharpMoveStaticMembersTests.cs (4)
685LanguageVersion = CodeAnalysis.CSharp.LanguageVersion.CSharp10 3387LanguageVersion = CodeAnalysis.CSharp.LanguageVersion.CSharp10, 3407LanguageVersion = CodeAnalysis.CSharp.LanguageVersion.CSharp10, 3430LanguageVersion = CodeAnalysis.CSharp.LanguageVersion.CSharp10,
ExtractInterface\ExtractInterfaceTests.cs (3)
500parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp10), 581parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp10), 892parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp10),
Formatting\CSharpNewDocumentFormattingServiceTests.cs (2)
58parseOptions: new CSharpParseOptions(LanguageVersion.CSharp10)); 81parseOptions: new CSharpParseOptions(LanguageVersion.CSharp10));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Attributes\AttributeTests_RefSafetyRules.cs (3)
82[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersion, 164[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionA, 165[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB,
Semantics\CollectionExpressionTests.cs (1)
22697var comp = CreateCompilation(new[] { sourceA, CollectionBuilderAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp10), targetFramework: TargetFramework.Net60);
Microsoft.CodeAnalysis.CSharp.Features (5)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
384if (names.Length > 1 && names[0].SyntaxTree.Options.LanguageVersion() >= LanguageVersion.CSharp10)
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertNamespaceAnalysis.cs (1)
56if (version < LanguageVersion.CSharp10)
src\Analyzers\CSharp\Analyzers\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternDiagnosticAnalyzer.cs (1)
45if (compilationContext.Compilation.LanguageVersion() < LanguageVersion.CSharp10)
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
128if (options.LanguageVersion() < LanguageVersion.CSharp10)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\UsePatternMatchingHelpers.cs (1)
46requiredLanguageVersion = LanguageVersion.CSharp10;
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (246)
ConvertNamespace\ConvertNamespaceRefactoringTests.cs (39)
58LanguageVersion = LanguageVersion.CSharp10, 79LanguageVersion = LanguageVersion.CSharp10, 100LanguageVersion = LanguageVersion.CSharp10, 120LanguageVersion = LanguageVersion.CSharp10, 139LanguageVersion = LanguageVersion.CSharp10, 162LanguageVersion = LanguageVersion.CSharp10, 184LanguageVersion = LanguageVersion.CSharp10, 206LanguageVersion = LanguageVersion.CSharp10, 227LanguageVersion = LanguageVersion.CSharp10, 248LanguageVersion = LanguageVersion.CSharp10, 273LanguageVersion = LanguageVersion.CSharp10, 297LanguageVersion = LanguageVersion.CSharp10, 325LanguageVersion = LanguageVersion.CSharp10, 355LanguageVersion = LanguageVersion.CSharp10, 384LanguageVersion = LanguageVersion.CSharp10, 412LanguageVersion = LanguageVersion.CSharp10, 442LanguageVersion = LanguageVersion.CSharp10, 470LanguageVersion = LanguageVersion.CSharp10, 502LanguageVersion = LanguageVersion.CSharp10, 538LanguageVersion = LanguageVersion.CSharp10, 574LanguageVersion = LanguageVersion.CSharp10, 617LanguageVersion = LanguageVersion.CSharp10, 638LanguageVersion = LanguageVersion.CSharp10, 659LanguageVersion = LanguageVersion.CSharp10, 677LanguageVersion = LanguageVersion.CSharp10, 695LanguageVersion = LanguageVersion.CSharp10, 712LanguageVersion = LanguageVersion.CSharp10, 740LanguageVersion = LanguageVersion.CSharp10, 764LanguageVersion = LanguageVersion.CSharp10, 791LanguageVersion = LanguageVersion.CSharp10, 816LanguageVersion = LanguageVersion.CSharp10, 840LanguageVersion = LanguageVersion.CSharp10, 865LanguageVersion = LanguageVersion.CSharp10, 889LanguageVersion = LanguageVersion.CSharp10, 917LanguageVersion = LanguageVersion.CSharp10, 947LanguageVersion = LanguageVersion.CSharp10, 975LanguageVersion = LanguageVersion.CSharp10, 1004LanguageVersion = LanguageVersion.CSharp10, 1034LanguageVersion = LanguageVersion.CSharp10,
ConvertProgram\ConvertToProgramMainRefactoringTests.cs (8)
34LanguageVersion = LanguageVersion.CSharp10, 53LanguageVersion = LanguageVersion.CSharp10, 80LanguageVersion = LanguageVersion.CSharp10, 94LanguageVersion = LanguageVersion.CSharp10, 115LanguageVersion = LanguageVersion.CSharp10, 133LanguageVersion = LanguageVersion.CSharp10, 151LanguageVersion = LanguageVersion.CSharp10, 177LanguageVersion = LanguageVersion.CSharp10,
ConvertProgram\ConvertToTopLevelStatementsAnalyzerTests.cs (5)
173LanguageVersion = LanguageVersion.CSharp10, 202LanguageVersion = LanguageVersion.CSharp10, 1367LanguageVersion = LanguageVersion.CSharp10, 1449LanguageVersion = LanguageVersion.CSharp10, 1508LanguageVersion = LanguageVersion.CSharp10,
ConvertProgram\ConvertToTopLevelStatementsRefactoringTests.cs (8)
34LanguageVersion = LanguageVersion.CSharp10, 61LanguageVersion = LanguageVersion.CSharp10, 84LanguageVersion = LanguageVersion.CSharp10, 109LanguageVersion = LanguageVersion.CSharp10, 133LanguageVersion = LanguageVersion.CSharp10, 188LanguageVersion = LanguageVersion.CSharp10, 212LanguageVersion = LanguageVersion.CSharp10, 239LanguageVersion = LanguageVersion.CSharp10,
ConvertToInterpolatedString\ConvertRegularStringToInterpolatedStringTests.cs (2)
189""", parseOptions: new CSharpParseOptions(LanguageVersion.CSharp10)); 240""", parseOptions: new CSharpParseOptions(LanguageVersion.CSharp10));
ConvertToRecord\ConvertToRecordCodeRefactoringTests.cs (2)
4692LanguageVersion = LanguageVersion.CSharp10; 4736LanguageVersion = LanguageVersion.CSharp10;
ExtractClass\ExtractClassTests.cs (8)
517LanguageVersion = LanguageVersion.CSharp10, 641LanguageVersion = LanguageVersion.CSharp10, 755LanguageVersion = LanguageVersion.CSharp10, 1280LanguageVersion = LanguageVersion.CSharp10, 1354LanguageVersion = LanguageVersion.CSharp10, 1412LanguageVersion = LanguageVersion.CSharp10, 1484LanguageVersion = LanguageVersion.CSharp10, 2842LanguageVersion = LanguageVersion.CSharp10,
ReplaceConditionalWithStatements\ReplaceConditionalWithStatementsTests.cs (4)
316LanguageVersion = CodeAnalysis.CSharp.LanguageVersion.CSharp10, 500LanguageVersion = CodeAnalysis.CSharp.LanguageVersion.CSharp10, 529LanguageVersion = CodeAnalysis.CSharp.LanguageVersion.CSharp10, 558LanguageVersion = CodeAnalysis.CSharp.LanguageVersion.CSharp10,
SimplifyPropertyPattern\SimplifyPropertyPatternTests.cs (21)
84LanguageVersion = LanguageVersion.CSharp10, 110LanguageVersion = LanguageVersion.CSharp10, 135LanguageVersion = LanguageVersion.CSharp10, 160LanguageVersion = LanguageVersion.CSharp10, 185LanguageVersion = LanguageVersion.CSharp10, 210LanguageVersion = LanguageVersion.CSharp10, 235LanguageVersion = LanguageVersion.CSharp10, 274LanguageVersion = LanguageVersion.CSharp10, 311LanguageVersion = LanguageVersion.CSharp10, 348LanguageVersion = LanguageVersion.CSharp10, 385LanguageVersion = LanguageVersion.CSharp10, 422LanguageVersion = LanguageVersion.CSharp10, 459LanguageVersion = LanguageVersion.CSharp10, 496LanguageVersion = LanguageVersion.CSharp10, 533LanguageVersion = LanguageVersion.CSharp10, 583LanguageVersion = LanguageVersion.CSharp10, 632LanguageVersion = LanguageVersion.CSharp10, 671LanguageVersion = LanguageVersion.CSharp10, 723LanguageVersion = LanguageVersion.CSharp10, 746LanguageVersion = LanguageVersion.CSharp10, 768LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\AddAccessibilityModifiers\AddAccessibilityModifiersTests.cs (1)
568LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\ConvertNamespace\ConvertToBlockScopedNamespaceAnalyzerTests.cs (19)
84LanguageVersion = LanguageVersion.CSharp10, 106LanguageVersion = LanguageVersion.CSharp10, 133LanguageVersion = LanguageVersion.CSharp10, 160LanguageVersion = LanguageVersion.CSharp10, 189LanguageVersion = LanguageVersion.CSharp10, 216LanguageVersion = LanguageVersion.CSharp10, 245LanguageVersion = LanguageVersion.CSharp10, 272LanguageVersion = LanguageVersion.CSharp10, 306LanguageVersion = LanguageVersion.CSharp10, 339LanguageVersion = LanguageVersion.CSharp10, 364LanguageVersion = LanguageVersion.CSharp10, 388LanguageVersion = LanguageVersion.CSharp10, 413LanguageVersion = LanguageVersion.CSharp10, 437LanguageVersion = LanguageVersion.CSharp10, 465LanguageVersion = LanguageVersion.CSharp10, 495LanguageVersion = LanguageVersion.CSharp10, 523LanguageVersion = LanguageVersion.CSharp10, 552LanguageVersion = LanguageVersion.CSharp10, 582LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\ConvertNamespace\ConvertToFileScopedNamespaceAnalyzerTests.cs (33)
51LanguageVersion = LanguageVersion.CSharp10, 72LanguageVersion = LanguageVersion.CSharp10, 93LanguageVersion = LanguageVersion.CSharp10, 116LanguageVersion = LanguageVersion.CSharp10, 138LanguageVersion = LanguageVersion.CSharp10, 159LanguageVersion = LanguageVersion.CSharp10, 180LanguageVersion = LanguageVersion.CSharp10, 212LanguageVersion = LanguageVersion.CSharp10, 236LanguageVersion = LanguageVersion.CSharp10, 264LanguageVersion = LanguageVersion.CSharp10, 294LanguageVersion = LanguageVersion.CSharp10, 323LanguageVersion = LanguageVersion.CSharp10, 351LanguageVersion = LanguageVersion.CSharp10, 381LanguageVersion = LanguageVersion.CSharp10, 411LanguageVersion = LanguageVersion.CSharp10, 452LanguageVersion = LanguageVersion.CSharp10, 486LanguageVersion = LanguageVersion.CSharp10, 520LanguageVersion = LanguageVersion.CSharp10, 568LanguageVersion = LanguageVersion.CSharp10, 616LanguageVersion = LanguageVersion.CSharp10, 666LanguageVersion = LanguageVersion.CSharp10, 850LanguageVersion = LanguageVersion.CSharp10, 871LanguageVersion = LanguageVersion.CSharp10, 899LanguageVersion = LanguageVersion.CSharp10, 920LanguageVersion = LanguageVersion.CSharp10, 948LanguageVersion = LanguageVersion.CSharp10, 969LanguageVersion = LanguageVersion.CSharp10, 999LanguageVersion = LanguageVersion.CSharp10, 1031LanguageVersion = LanguageVersion.CSharp10, 1060LanguageVersion = LanguageVersion.CSharp10, 1090LanguageVersion = LanguageVersion.CSharp10, 1555LanguageVersion = LanguageVersion.CSharp10, 1576LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\ConvertToRecord\ConvertToRecordCodeFixTests.cs (1)
154LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\ConvertTypeOfToNameOf\ConvertTypeOfToNameOfTests.cs (1)
361LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\FixReturnType\FixReturnTypeTests.cs (1)
224LanguageVersion = LanguageVersion.CSharp10
src\Analyzers\CSharp\Tests\GenerateDefaultConstructors\GenerateDefaultConstructorsTests.cs (4)
43LanguageVersion = LanguageVersion.CSharp10, 55LanguageVersion = LanguageVersion.CSharp10, 69LanguageVersion = LanguageVersion.CSharp10, 80LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\MakeMemberRequired\MakeMemberRequiredTests.cs (1)
454LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\MakeStructMemberReadOnly\MakeStructMemberReadOnlyTests.cs (1)
999LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\MakeTypePartial\MakeTypePartialTests.cs (11)
56LanguageVersion = LanguageVersion.CSharp10 88LanguageVersion = LanguageVersion.CSharp10 122LanguageVersion = LanguageVersion.CSharp10 162LanguageVersion = LanguageVersion.CSharp10 198LanguageVersion = LanguageVersion.CSharp10 226LanguageVersion = LanguageVersion.CSharp10 260LanguageVersion = LanguageVersion.CSharp10 302LanguageVersion = LanguageVersion.CSharp10 341LanguageVersion = LanguageVersion.CSharp10, 350LanguageVersion = LanguageVersion.CSharp10, 379LanguageVersion = LanguageVersion.CSharp10
src\Analyzers\CSharp\Tests\MatchFolderAndNamespace\CSharpMatchFolderAndNamespaceTests.cs (2)
55LanguageVersion = LanguageVersion.CSharp10, 884LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\MisplacedUsingDirectives\MisplacedUsingDirectivesTests.cs (1)
88initialMarkup, expectedMarkup, options: options, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp10));
src\Analyzers\CSharp\Tests\RemoveUnnecessaryCast\RemoveUnnecessaryCastTests.cs (37)
6157LanguageVersion = LanguageVersion.CSharp10, 6180LanguageVersion = LanguageVersion.CSharp10, 11629LanguageVersion = LanguageVersion.CSharp10, 12123LanguageVersion = LanguageVersion.CSharp10, 12159LanguageVersion = LanguageVersion.CSharp10, 12183LanguageVersion = LanguageVersion.CSharp10, 12205LanguageVersion = LanguageVersion.CSharp10, 12226LanguageVersion = LanguageVersion.CSharp10, 12247LanguageVersion = LanguageVersion.CSharp10, 12270LanguageVersion = LanguageVersion.CSharp10, 12292LanguageVersion = LanguageVersion.CSharp10, 12308LanguageVersion = LanguageVersion.CSharp10, 12330LanguageVersion = LanguageVersion.CSharp10, 12354LanguageVersion = LanguageVersion.CSharp10, 12373LanguageVersion = LanguageVersion.CSharp10, 12392LanguageVersion = LanguageVersion.CSharp10, 12416LanguageVersion = LanguageVersion.CSharp10, 12439LanguageVersion = LanguageVersion.CSharp10, 12470LanguageVersion = LanguageVersion.CSharp10, 12520LanguageVersion = LanguageVersion.CSharp10, 12561LanguageVersion = LanguageVersion.CSharp10, 12588LanguageVersion = LanguageVersion.CSharp10, 12635LanguageVersion = LanguageVersion.CSharp10, 12680LanguageVersion = LanguageVersion.CSharp10, 12699LanguageVersion = LanguageVersion.CSharp10, 12730LanguageVersion = LanguageVersion.CSharp10, 12761LanguageVersion = LanguageVersion.CSharp10, 12792LanguageVersion = LanguageVersion.CSharp10, 12823LanguageVersion = LanguageVersion.CSharp10, 12854LanguageVersion = LanguageVersion.CSharp10, 12885LanguageVersion = LanguageVersion.CSharp10, 12904LanguageVersion = LanguageVersion.CSharp10, 12930LanguageVersion = LanguageVersion.CSharp10, 12966LanguageVersion = LanguageVersion.CSharp10, 13001LanguageVersion = LanguageVersion.CSharp10, 13020LanguageVersion = LanguageVersion.CSharp10, 13075LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\RemoveUnnecessaryImports\RemoveUnnecessaryImportsTests.cs (3)
478LanguageVersion = LanguageVersion.CSharp10, 631LanguageVersion = LanguageVersion.CSharp10, 2103LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\RemoveUnnecessaryLambdaExpression\RemoveUnnecessaryLambdaExpressionTests.cs (1)
65""", LanguageVersion.CSharp10);
src\Analyzers\CSharp\Tests\TransposeRecordKeyword\TransposeRecordKeywordTests.cs (10)
27LanguageVersion = LanguageVersion.CSharp10 38LanguageVersion = LanguageVersion.CSharp10 49LanguageVersion = LanguageVersion.CSharp10 66LanguageVersion = LanguageVersion.CSharp10 83LanguageVersion = LanguageVersion.CSharp10 100LanguageVersion = LanguageVersion.CSharp10 115LanguageVersion = LanguageVersion.CSharp10 136LanguageVersion = LanguageVersion.CSharp10 161LanguageVersion = LanguageVersion.CSharp10 182LanguageVersion = LanguageVersion.CSharp10
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (6)
1090expected: LanguageVersion.CSharp10, 1179LanguageVersion.CSharp10, 1198expected: LanguageVersion.CSharp10, 1247new CSharpParseOptions(LanguageVersion.CSharp10)); 1261new CSharpParseOptions(LanguageVersion.CSharp10)); 1275new CSharpParseOptions(LanguageVersion.CSharp10));
src\Analyzers\CSharp\Tests\UseLocalFunction\UseLocalFunctionTests.cs (1)
4165parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp10));
src\Analyzers\CSharp\Tests\UsePatternMatching\CSharpAsAndMemberAccessTests.cs (5)
337LanguageVersion = LanguageVersion.CSharp10, 420LanguageVersion = LanguageVersion.CSharp10, 737LanguageVersion = LanguageVersion.CSharp10, 809LanguageVersion = LanguageVersion.CSharp10, 871LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\UseUtf8StringLiteral\UseUtf8StringLiteralTests.cs (1)
66LanguageVersion = LanguageVersion.CSharp10
UseNameofInAttribute\UseNameofInAttributeTests.cs (1)
177LanguageVersion = LanguageVersion.CSharp10,
UseRecursivePatterns\UseRecursivePatternsRefactoringTests.cs (8)
80[InlineData("a.b.c.d && b", "this is { a.b.c.d: n, b: n }", LanguageVersion.CSharp10)] 81[InlineData("a?.b.c.d && b", "this is { a.b.c.d: n, b: n }", LanguageVersion.CSharp10)] 82[InlineData("a.b?.c.d && b", "this is { a.b.c.d: n, b: n }", LanguageVersion.CSharp10)] 83[InlineData("a.b.c?.d && b", "this is { a.b.c.d: n, b: n }", LanguageVersion.CSharp10)] 84[InlineData("a.b?.c?.d && b", "this is { a.b.c.d: n, b: n }", LanguageVersion.CSharp10)] 85[InlineData("a?.b.c?.d && b", "this is { a.b.c.d: n, b: n }", LanguageVersion.CSharp10)] 86[InlineData("a?.b?.c.d && b", "this is { a.b.c.d: n, b: n }", LanguageVersion.CSharp10)] 87[InlineData("a?.b?.c?.d && b", "this is { a.b.c.d: n, b: n }", LanguageVersion.CSharp10)]
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (222)
Semantics\InterpolationTests.cs (6)
1155languageVersion: LanguageVersion.CSharp10, 1366languageVersion: LanguageVersion.CSharp10, 14911[InlineData(LanguageVersion.CSharp10)] 15051[InlineData(LanguageVersion.CSharp10)] 15128[InlineData(LanguageVersion.CSharp10)] 15218[InlineData(LanguageVersion.CSharp10)]
Semantics\NullableReferenceTypesTests.cs (2)
1221[InlineData(LanguageVersion.CSharp10)] 1258[InlineData(LanguageVersion.CSharp10)]
Semantics\RecordStructTests.cs (1)
7952[InlineData(LanguageVersion.CSharp10)]
Semantics\RefEscapingTests.cs (97)
124[InlineData(LanguageVersion.CSharp10)] 170[InlineData(LanguageVersion.CSharp10)] 201[InlineData(LanguageVersion.CSharp10)] 250[InlineData(LanguageVersion.CSharp10)] 531[InlineData(LanguageVersion.CSharp10)] 577[InlineData(LanguageVersion.CSharp10)] 623[InlineData(LanguageVersion.CSharp10)] 684[InlineData(LanguageVersion.CSharp10)] 715[InlineData(LanguageVersion.CSharp10)] 815[InlineData(LanguageVersion.CSharp10)] 836if (languageVersion == LanguageVersion.CSharp10) 972[InlineData(LanguageVersion.CSharp10)] 1006if (languageVersion == LanguageVersion.CSharp10) 1088[InlineData(LanguageVersion.CSharp10)] 1143[InlineData(LanguageVersion.CSharp10)] 1195[InlineData(LanguageVersion.CSharp10)] 1247[InlineData(LanguageVersion.CSharp10)] 1316[InlineData(LanguageVersion.CSharp10)] 1429[InlineData(LanguageVersion.CSharp10)] 1458[InlineData(LanguageVersion.CSharp10)] 1499[InlineData(LanguageVersion.CSharp10)] 1530[InlineData(LanguageVersion.CSharp10)] 1593[InlineData(LanguageVersion.CSharp10)] 1822[InlineData(LanguageVersion.CSharp10)] 1875[InlineData(LanguageVersion.CSharp10)] 1950[InlineData(LanguageVersion.CSharp10)] 2003[InlineData(LanguageVersion.CSharp10)] 2044[InlineData(LanguageVersion.CSharp10)] 2340[InlineData(LanguageVersion.CSharp10)] 2671[InlineData(LanguageVersion.CSharp10)] 2923[InlineData(LanguageVersion.CSharp10)] 3173[InlineData(LanguageVersion.CSharp10)] 3456[InlineData(LanguageVersion.CSharp10)] 3521[InlineData(LanguageVersion.CSharp10)] 3590[InlineData(LanguageVersion.CSharp10)] 3664[InlineData(LanguageVersion.CSharp10)] 3747[InlineData(LanguageVersion.CSharp10)] 4130[InlineData(LanguageVersion.CSharp10)] 4196[InlineData(LanguageVersion.CSharp10)] 4291[InlineData(LanguageVersion.CSharp10)] 4455[InlineData(LanguageVersion.CSharp10)] 4501[InlineData(LanguageVersion.CSharp10)] 4594[InlineData(LanguageVersion.CSharp10)] 4687[InlineData(LanguageVersion.CSharp10)] 4741[InlineData(LanguageVersion.CSharp10)] 4796[InlineData(LanguageVersion.CSharp10)] 4847[InlineData(LanguageVersion.CSharp10)] 4894if (languageVersion == LanguageVersion.CSharp10) 4921[InlineData(LanguageVersion.CSharp10)] 4967[InlineData(LanguageVersion.CSharp10)] 4991[InlineData(LanguageVersion.CSharp10)] 5015[InlineData(LanguageVersion.CSharp10)] 5065[InlineData(LanguageVersion.CSharp10)] 5115[InlineData(LanguageVersion.CSharp10)] 5165[InlineData(LanguageVersion.CSharp10)] 5194[InlineData(LanguageVersion.CSharp10)] 5249[InlineData(LanguageVersion.CSharp10)] 5297[InlineData(LanguageVersion.CSharp10)] 5336[InlineData(LanguageVersion.CSharp10)] 5390[InlineData(LanguageVersion.CSharp10)] 5422[InlineData(LanguageVersion.CSharp10)] 5450[InlineData(LanguageVersion.CSharp10)] 5478[InlineData(LanguageVersion.CSharp10)] 5501if (languageVersion == LanguageVersion.CSharp10) 5530[InlineData(LanguageVersion.CSharp10)] 5565[InlineData(LanguageVersion.CSharp10)] 5600[InlineData(LanguageVersion.CSharp10)] 5644[InlineData(LanguageVersion.CSharp10)] 5743[InlineData(LanguageVersion.CSharp10)] 5843[InlineData(LanguageVersion.CSharp10)] 5915[InlineData(LanguageVersion.CSharp10)] 5948[InlineData(LanguageVersion.CSharp10)] 5986[InlineData(LanguageVersion.CSharp10)] 6022[InlineData(LanguageVersion.CSharp10)] 6065[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersion, 6101[InlineData(LanguageVersion.CSharp10)] 6133[InlineData(LanguageVersion.CSharp10)] 6161[InlineData(LanguageVersion.CSharp10)] 6204[InlineData(LanguageVersion.CSharp10)] 6233[InlineData(LanguageVersion.CSharp10)] 6258[InlineData(LanguageVersion.CSharp10)] 6358[InlineData(LanguageVersion.CSharp10)] 6384if (languageVersion == LanguageVersion.CSharp10) 6465[InlineData(LanguageVersion.CSharp10)] 6492[InlineData(LanguageVersion.CSharp10)] 6519[InlineData(LanguageVersion.CSharp10)] 6548[InlineData(LanguageVersion.CSharp10)] 6572[InlineData(LanguageVersion.CSharp10)] 6602[InlineData(LanguageVersion.CSharp10)] 6629[InlineData(LanguageVersion.CSharp10)] 6656[InlineData(LanguageVersion.CSharp10)] 6685[InlineData(LanguageVersion.CSharp10)] 6712[InlineData(LanguageVersion.CSharp10)] 6729[InlineData(LanguageVersion.CSharp10)] 6747[InlineData(LanguageVersion.CSharp10)] 6807[InlineData(LanguageVersion.CSharp10)] 9729[InlineData(LanguageVersion.CSharp10)]
Semantics\RefFieldTests.cs (95)
2275[InlineData(LanguageVersion.CSharp10)] 2290if (languageVersion == LanguageVersion.CSharp10) 4916[InlineData(LanguageVersion.CSharp10)] 4942[InlineData(LanguageVersion.CSharp10)] 5045[InlineData(LanguageVersion.CSharp10)] 9109[InlineData(LanguageVersion.CSharp10)] 9149[InlineData(LanguageVersion.CSharp10)] 9172[InlineData(LanguageVersion.CSharp10)] 9195[InlineData(LanguageVersion.CSharp10)] 9239[InlineData(LanguageVersion.CSharp10)] 9282[InlineData(LanguageVersion.CSharp10)] 9328[InlineData(LanguageVersion.CSharp10)] 9350[InlineData(LanguageVersion.CSharp10)] 9400[InlineData(LanguageVersion.CSharp10)] 9427[InlineData(LanguageVersion.CSharp10)] 9470if (languageVersion == LanguageVersion.CSharp10) 9487[InlineData(LanguageVersion.CSharp10)] 9532[InlineData(LanguageVersion.CSharp10)] 9577[InlineData(LanguageVersion.CSharp10)] 9641[InlineData(LanguageVersion.CSharp10)] 9723[InlineData(LanguageVersion.CSharp10)] 9747if (languageVersion == LanguageVersion.CSharp10) 9773[InlineData(LanguageVersion.CSharp10)] 10115[InlineData(LanguageVersion.CSharp10)] 10143[InlineData(LanguageVersion.CSharp10)] 10297[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersion, 10341[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersion, 10391[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersion, 10419if (languageVersion == LanguageVersion.CSharp10) 10441[InlineData(LanguageVersion.CSharp10)] 10471if (languageVersion == LanguageVersion.CSharp10) 10610[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionA, 10611[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 10640[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionA, 10641[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 10673[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionA, 10674[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 10702if (languageVersionA == LanguageVersion.CSharp10) 10730[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionA, 10731[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 10761if (languageVersionA == LanguageVersion.CSharp10) 10788[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionA, 10789[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 10813if (languageVersionA == LanguageVersion.CSharp10) 10831[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionA, 10832[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 11512[InlineData(LanguageVersion.CSharp10)] 11627[InlineData(LanguageVersion.CSharp10)] 11661[InlineData(LanguageVersion.CSharp10)] 11702[InlineData(LanguageVersion.CSharp10)] 11739var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp10)); 11892[InlineData(LanguageVersion.CSharp10)] 13321[InlineData(LanguageVersion.CSharp10)] 13344[InlineData(LanguageVersion.CSharp10)] 13369[InlineData(LanguageVersion.CSharp10)] 13389[InlineData(LanguageVersion.CSharp10)] 14633[InlineData(LanguageVersion.CSharp10)] 14905[InlineData(LanguageVersion.CSharp10)] 15064[InlineData(LanguageVersion.CSharp10)] 16880[InlineData(LanguageVersion.CSharp10)] 19989[InlineData(LanguageVersion.CSharp10)] 20049[InlineData(LanguageVersion.CSharp10)] 20069if (languageVersion == LanguageVersion.CSharp10) 20218[InlineData(LanguageVersion.CSharp10)] 20240[InlineData(LanguageVersion.CSharp10)] 24641[InlineData(LanguageVersion.CSharp10)] 24678[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionA, 24679[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 24719[InlineData(LanguageVersion.CSharp10)] 24770[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionA, 24771[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 24806[InlineData(LanguageVersion.CSharp10)] 24867[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionA, 24868[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 24899languageVersionB == LanguageVersion.CSharp10) 24918[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionA, 24919[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 24958languageVersionB == LanguageVersion.CSharp10) 25011[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 25047[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionA, 25048[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 25085languageVersionB == LanguageVersion.CSharp10) 25181[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 25218if (languageVersionB == LanguageVersion.CSharp10) 25249[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionA, 25297if (languageVersionA == LanguageVersion.CSharp10) 25364[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 25418[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 26518[InlineData(LanguageVersion.CSharp10, TargetFramework.Net60, false, false)] 26521[InlineData(LanguageVersion.CSharp10, TargetFramework.Net70, true, true)] 26568[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersion, 26625[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersion, 29745[InlineData(LanguageVersion.CSharp10)] 29800[InlineData(LanguageVersion.CSharp10)] 30058[InlineData(LanguageVersion.CSharp10)]
Semantics\RefLocalsAndReturnsTests.cs (3)
566[InlineData(LanguageVersion.CSharp10)] 4936[InlineData(LanguageVersion.CSharp10)] 4976[InlineData(LanguageVersion.CSharp10)]
Semantics\SpanStackSafetyTests.cs (4)
2175[InlineData(LanguageVersion.CSharp10)] 2210[InlineData(LanguageVersion.CSharp10)] 2335[InlineData(LanguageVersion.CSharp10)] 2374if (languageVersion == LanguageVersion.CSharp10)
Semantics\StructConstructorTests.cs (13)
854[InlineData(LanguageVersion.CSharp10)] 914[InlineData(LanguageVersion.CSharp10)] 983[InlineData(LanguageVersion.CSharp10)] 1072[InlineData(LanguageVersion.CSharp10)] 1167[InlineData(LanguageVersion.CSharp10)] 1602[InlineData(LanguageVersion.CSharp10)] 1786[InlineData(LanguageVersion.CSharp10)] 1880[InlineData(LanguageVersion.CSharp10)] 1909[InlineData(LanguageVersion.CSharp10)] 3756[InlineData(LanguageVersion.CSharp10)] 4160[InlineData(LanguageVersion.CSharp10)] 4727[InlineData(LanguageVersion.CSharp10)] 4758[InlineData(LanguageVersion.CSharp10)]
SourceGeneration\StateTableTests.cs (1)
1344var options = CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp10);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Compilation\CompilationAPITests.cs (3)
2069class C { }", options: TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp10)); 2077class C { }", options: TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp10)); 2081class C { }", options: TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp10));
Compilation\UsedAssembliesTests.cs (2)
191var parseOptions = ((CSharpParseOptions)tree.Options).WithLanguageVersion(treeLanguageVersion > LanguageVersion.CSharp10 ? treeLanguageVersion : LanguageVersion.CSharp10);
DocumentationComments\CrefTests.cs (2)
6993var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp10), targetFramework: TargetFramework.NetCoreApp); 7038var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp10), targetFramework: TargetFramework.NetCoreApp);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (254)
Parsing\DeclarationScopeParsingTests.cs (225)
19[InlineData(LanguageVersion.CSharp10)] 66[InlineData(LanguageVersion.CSharp10)] 137[InlineData(LanguageVersion.CSharp10)] 305[InlineData(LanguageVersion.CSharp10)] 424[InlineData(LanguageVersion.CSharp10)] 593[InlineData(LanguageVersion.CSharp10)] 678[InlineData(LanguageVersion.CSharp10)] 741[InlineData(LanguageVersion.CSharp10)] 795[InlineData(LanguageVersion.CSharp10)] 835[InlineData(LanguageVersion.CSharp10)] 890[InlineData(LanguageVersion.CSharp10)] 932[InlineData(LanguageVersion.CSharp10)] 998[InlineData(LanguageVersion.CSharp10)] 1032[InlineData(LanguageVersion.CSharp10)] 1062[InlineData(LanguageVersion.CSharp10)] 1092[InlineData(LanguageVersion.CSharp10)] 1193[InlineData(LanguageVersion.CSharp10)] 1261[InlineData(LanguageVersion.CSharp10)] 1394[InlineData(LanguageVersion.CSharp10)] 1531[InlineData(LanguageVersion.CSharp10)] 1599[InlineData(LanguageVersion.CSharp10)] 1716[InlineData(LanguageVersion.CSharp10)] 1848[InlineData(LanguageVersion.CSharp10)] 1914[InlineData(LanguageVersion.CSharp10)] 1964[InlineData(LanguageVersion.CSharp10)] 2008[InlineData(LanguageVersion.CSharp10)] 2083[InlineData(LanguageVersion.CSharp10)] 2141[InlineData(LanguageVersion.CSharp10)] 2165[InlineData(LanguageVersion.CSharp10)] 2189[InlineData(LanguageVersion.CSharp10)] 2295[InlineData(LanguageVersion.CSharp10)] 2401[InlineData(LanguageVersion.CSharp10)] 2495[InlineData(LanguageVersion.CSharp10)] 2542[InlineData(LanguageVersion.CSharp10)] 2612[InlineData(LanguageVersion.CSharp10)] 2678[InlineData(LanguageVersion.CSharp10)] 2721[InlineData(LanguageVersion.CSharp10)] 2765[InlineData(LanguageVersion.CSharp10)] 2840[InlineData(LanguageVersion.CSharp10)] 3011[InlineData(LanguageVersion.CSharp10)] 3158[InlineData(LanguageVersion.CSharp10)] 3250[InlineData(LanguageVersion.CSharp10)] 3276else if (langVersion == LanguageVersion.CSharp10) 3480[InlineData(LanguageVersion.CSharp10)] 3547[InlineData(LanguageVersion.CSharp10)] 3618[InlineData(LanguageVersion.CSharp10)] 3694[InlineData(LanguageVersion.CSharp10)] 3770[InlineData(LanguageVersion.CSharp10)] 3842[InlineData(LanguageVersion.CSharp10)] 3929[InlineData(LanguageVersion.CSharp10)] 4009[InlineData(LanguageVersion.CSharp10)] 4080[InlineData(LanguageVersion.CSharp10)] 4149[InlineData(LanguageVersion.CSharp10)] 4224[InlineData(LanguageVersion.CSharp10)] 4297[InlineData(LanguageVersion.CSharp10)] 4373[InlineData(LanguageVersion.CSharp10)] 4447[InlineData(LanguageVersion.CSharp10)] 4518[InlineData(LanguageVersion.CSharp10)] 4593[InlineData(LanguageVersion.CSharp10)] 4669[InlineData(LanguageVersion.CSharp10)] 4744[InlineData(LanguageVersion.CSharp10)] 4815[InlineData(LanguageVersion.CSharp10)] 4886[InlineData(LanguageVersion.CSharp10)] 4961[InlineData(LanguageVersion.CSharp10)] 5037[InlineData(LanguageVersion.CSharp10)] 5104[InlineData(LanguageVersion.CSharp10)] 5175[InlineData(LanguageVersion.CSharp10)] 5248[InlineData(LanguageVersion.CSharp10)] 5321[InlineData(LanguageVersion.CSharp10)] 5405[InlineData(LanguageVersion.CSharp10)] 5474[InlineData(LanguageVersion.CSharp10)] 5544[InlineData(LanguageVersion.CSharp10)] 5623[InlineData(LanguageVersion.CSharp10)] 5694[InlineData(LanguageVersion.CSharp10)] 5773[InlineData(LanguageVersion.CSharp10)] 5894[InlineData(LanguageVersion.CSharp10)] 5946[InlineData(LanguageVersion.CSharp10)] 6002[InlineData(LanguageVersion.CSharp10)] 6080[InlineData(LanguageVersion.CSharp10)] 6148[InlineData(LanguageVersion.CSharp10)] 6205[InlineData(LanguageVersion.CSharp10)] 6295[InlineData(LanguageVersion.CSharp10)] 6378[InlineData(LanguageVersion.CSharp10)] 6434[InlineData(LanguageVersion.CSharp10)] 6505[InlineData(LanguageVersion.CSharp10)] 6565[InlineData(LanguageVersion.CSharp10)] 6637[InlineData(LanguageVersion.CSharp10)] 6698[InlineData(LanguageVersion.CSharp10)] 6789[InlineData(LanguageVersion.CSharp10)] 6845[InlineData(LanguageVersion.CSharp10)] 6905[InlineData(LanguageVersion.CSharp10)] 6966[InlineData(LanguageVersion.CSharp10)] 7026[InlineData(LanguageVersion.CSharp10)] 7082[InlineData(LanguageVersion.CSharp10)] 7138[InlineData(LanguageVersion.CSharp10)] 7198[InlineData(LanguageVersion.CSharp10)] 7259[InlineData(LanguageVersion.CSharp10)] 7311[InlineData(LanguageVersion.CSharp10)] 7367[InlineData(LanguageVersion.CSharp10)] 7445[InlineData(LanguageVersion.CSharp10)] 7513[InlineData(LanguageVersion.CSharp10)] 7585[InlineData(LanguageVersion.CSharp10)] 7655[InlineData(LanguageVersion.CSharp10)] 7726[InlineData(LanguageVersion.CSharp10)] 7798[InlineData(LanguageVersion.CSharp10)] 7865[InlineData(LanguageVersion.CSharp10)] 7933[InlineData(LanguageVersion.CSharp10)] 7989[InlineData(LanguageVersion.CSharp10)] 8041[InlineData(LanguageVersion.CSharp10)] 8080[InlineData(LanguageVersion.CSharp10)] 8148[InlineData(LanguageVersion.CSharp10)] 8182[InlineData(LanguageVersion.CSharp10)] 8245[InlineData(LanguageVersion.CSharp10)] 8312[InlineData(LanguageVersion.CSharp10)] 8350[InlineData(LanguageVersion.CSharp10)] 8387[InlineData(LanguageVersion.CSharp10)] 8428[InlineData(LanguageVersion.CSharp10)] 8476[InlineData(LanguageVersion.CSharp10)] 8521[InlineData(LanguageVersion.CSharp10)] 8563[InlineData(LanguageVersion.CSharp10)] 8612[InlineData(LanguageVersion.CSharp10)] 8660[InlineData(LanguageVersion.CSharp10)] 8701[InlineData(LanguageVersion.CSharp10)] 8751[InlineData(LanguageVersion.CSharp10)] 8796[InlineData(LanguageVersion.CSharp10)] 8853[InlineData(LanguageVersion.CSharp10)] 8899[InlineData(LanguageVersion.CSharp10)] 8970[InlineData(LanguageVersion.CSharp10)] 9011[InlineData(LanguageVersion.CSharp10)] 9056[InlineData(LanguageVersion.CSharp10)] 9102[InlineData(LanguageVersion.CSharp10)] 9147[InlineData(LanguageVersion.CSharp10)] 9188[InlineData(LanguageVersion.CSharp10)] 9237[InlineData(LanguageVersion.CSharp10)] 9278[InlineData(LanguageVersion.CSharp10)] 9324[InlineData(LanguageVersion.CSharp10)] 9370[InlineData(LanguageVersion.CSharp10)] 9407[InlineData(LanguageVersion.CSharp10)] 9448[InlineData(LanguageVersion.CSharp10)] 9489[InlineData(LanguageVersion.CSharp10)] 9534[InlineData(LanguageVersion.CSharp10)] 9582[InlineData(LanguageVersion.CSharp10)] 9653[InlineData(LanguageVersion.CSharp10)] 9687[InlineData(LanguageVersion.CSharp10)] 9725[InlineData(LanguageVersion.CSharp10)] 9788[InlineData(LanguageVersion.CSharp10)] 9827[InlineData(LanguageVersion.CSharp10)] 9904[InlineData(LanguageVersion.CSharp10)] 9974[InlineData(LanguageVersion.CSharp10)] 10012[InlineData(LanguageVersion.CSharp10)] 10068[InlineData(LanguageVersion.CSharp10)] 10110[InlineData(LanguageVersion.CSharp10)] 10173[InlineData(LanguageVersion.CSharp10)] 10216[InlineData(LanguageVersion.CSharp10)] 10286[InlineData(LanguageVersion.CSharp10)] 10324[InlineData(LanguageVersion.CSharp10)] 10366[InlineData(LanguageVersion.CSharp10)] 10409[InlineData(LanguageVersion.CSharp10)] 10451[InlineData(LanguageVersion.CSharp10)] 10489[InlineData(LanguageVersion.CSharp10)] 10527[InlineData(LanguageVersion.CSharp10)] 10569[InlineData(LanguageVersion.CSharp10)] 10612[InlineData(LanguageVersion.CSharp10)] 10646[InlineData(LanguageVersion.CSharp10)] 10684[InlineData(LanguageVersion.CSharp10)] 10738[InlineData(LanguageVersion.CSharp10)] 10796[InlineData(LanguageVersion.CSharp10)] 10866[InlineData(LanguageVersion.CSharp10)] 10954[InlineData(LanguageVersion.CSharp10)] 11008[InlineData(LanguageVersion.CSharp10)] 11109[InlineData(LanguageVersion.CSharp10)] 11351[InlineData(LanguageVersion.CSharp10)] 11383[InlineData(LanguageVersion.CSharp10)] 11471[InlineData(LanguageVersion.CSharp10)] 11507[InlineData(LanguageVersion.CSharp10)] 11597[InlineData(LanguageVersion.CSharp10)] 11677[InlineData(LanguageVersion.CSharp10)] 11732[InlineData(LanguageVersion.CSharp10)] 11792[InlineData(LanguageVersion.CSharp10)] 11832[InlineData(LanguageVersion.CSharp10)] 11887[InlineData(LanguageVersion.CSharp10)] 11978[InlineData(LanguageVersion.CSharp10)] 12019[InlineData(LanguageVersion.CSharp10)] 12075[InlineData(LanguageVersion.CSharp10)] 12119[InlineData(LanguageVersion.CSharp10)] 12164[InlineData(LanguageVersion.CSharp10)] 12206[InlineData(LanguageVersion.CSharp10)] 12252[InlineData(LanguageVersion.CSharp10)] 12311[InlineData(LanguageVersion.CSharp10)] 12378[InlineData(LanguageVersion.CSharp10)] 12425[InlineData(LanguageVersion.CSharp10)] 12495[InlineData(LanguageVersion.CSharp10)] 12558[InlineData(LanguageVersion.CSharp10)] 12604[InlineData(LanguageVersion.CSharp10)] 12656[InlineData(LanguageVersion.CSharp10)] 12706[InlineData(LanguageVersion.CSharp10)] 12762[InlineData(LanguageVersion.CSharp10)] 12813[InlineData(LanguageVersion.CSharp10)] 12870[InlineData(LanguageVersion.CSharp10)] 12916[InlineData(LanguageVersion.CSharp10)] 12966[InlineData(LanguageVersion.CSharp10)] 13017[InlineData(LanguageVersion.CSharp10)] 13067[InlineData(LanguageVersion.CSharp10)] 13113[InlineData(LanguageVersion.CSharp10)] 13167[InlineData(LanguageVersion.CSharp10)] 13213[InlineData(LanguageVersion.CSharp10)] 13263[InlineData(LanguageVersion.CSharp10)] 13314[InlineData(LanguageVersion.CSharp10)] 13356[InlineData(LanguageVersion.CSharp10)] 13402[InlineData(LanguageVersion.CSharp10)] 13461[InlineData(LanguageVersion.CSharp10)] 13528[InlineData(LanguageVersion.CSharp10)] 13580[InlineData(LanguageVersion.CSharp10)] 13650[InlineData(LanguageVersion.CSharp10)] 13724[InlineData(LanguageVersion.CSharp10)] 13834[InlineData(LanguageVersion.CSharp10)] 13951[InlineData(LanguageVersion.CSharp10)] 14010[InlineData(LanguageVersion.CSharp10)] 14074[InlineData(LanguageVersion.CSharp10)] 14142[InlineData(LanguageVersion.CSharp10)] 14216[InlineData(LanguageVersion.CSharp10)] 14263[InlineData(LanguageVersion.CSharp10)] 14350[InlineData(LanguageVersion.CSharp10)] 14406[InlineData(LanguageVersion.CSharp10)] 14474[InlineData(LanguageVersion.CSharp10)]
Parsing\FileModifierParsingTests.cs (4)
1518[InlineData(LanguageVersion.CSharp10)] 3137[InlineData(LanguageVersion.CSharp10)] 3181[InlineData(LanguageVersion.CSharp10)] 3221[InlineData(LanguageVersion.CSharp10)]
Parsing\MemberDeclarationParsingTests.cs (2)
29public static readonly IEnumerable<object[]> Regular10AndScriptAndRequiredMembersMinimum = new[] { new[] { TestOptions.Regular10 }, new[] { RequiredMembersOptions }, new[] { TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp10) } }; 30public static readonly IEnumerable<object[]> Regular10AndScript = new[] { new[] { TestOptions.Regular10 }, new[] { TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp10) } };
Parsing\RefFieldParsingTests.cs (23)
19[InlineData(LanguageVersion.CSharp10)] 56[InlineData(LanguageVersion.CSharp10)] 94[InlineData(LanguageVersion.CSharp10)] 130[InlineData(LanguageVersion.CSharp10)] 167[InlineData(LanguageVersion.CSharp10)] 225[InlineData(LanguageVersion.CSharp10)] 287[InlineData(LanguageVersion.CSharp10)] 347[InlineData(LanguageVersion.CSharp10)] 400[InlineData(LanguageVersion.CSharp10)] 462[InlineData(LanguageVersion.CSharp10)] 545[InlineData(LanguageVersion.CSharp10)] 648[InlineData(LanguageVersion.CSharp10)] 694[InlineData(LanguageVersion.CSharp10)] 734[InlineData(LanguageVersion.CSharp10)] 778[InlineData(LanguageVersion.CSharp10)] 843[InlineData(LanguageVersion.CSharp10)] 875[InlineData(LanguageVersion.CSharp10)] 926[InlineData(LanguageVersion.CSharp10)] 980[InlineData(LanguageVersion.CSharp10)] 1011[InlineData(LanguageVersion.CSharp10)] 1050[InlineData(LanguageVersion.CSharp10)] 1089[InlineData(LanguageVersion.CSharp10)] 1136[InlineData(LanguageVersion.CSharp10)]
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestOptions.cs (1)
42public static readonly CSharpParseOptions Regular10 = Regular.WithLanguageVersion(LanguageVersion.CSharp10);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\LanguageVersionExtensions.cs (1)
22=> languageVersion >= LanguageVersion.CSharp10;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
60=> options.LanguageVersion() >= LanguageVersion.CSharp10; 66=> options.LanguageVersion() >= LanguageVersion.CSharp10;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (1)
110info.LanguageVersion >= LanguageVersion.CSharp10)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Simplification\CastSimplificationTests.vb (1)
546Await TestAsync(input, expected, csharpParseOptions:=CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp10))
Microsoft.CodeAnalysis.Features.UnitTests (2)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (2)
2094solution = solution.WithProjectParseOptions(project.Id, new CSharpParseOptions(LanguageVersion.CSharp10)); 3126solution = solution.WithProjectParseOptions(project.Id, new CSharpParseOptions(LanguageVersion.CSharp10));
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
CSharpDeterministicKeyBuilderTests.cs (1)
427syntaxTrees: new[] { CSharpSyntaxTree.ParseText(@"// this is a comment", CSharpParseOptions.Default.WithLanguageVersion(CSharp.LanguageVersion.CSharp10)) },