928 references to CSharp10
Microsoft.CodeAnalysis.CSharp (5)
Errors\MessageID.cs (1)
545return LanguageVersion.CSharp10;
LanguageVersion.cs (4)
290case LanguageVersion.CSharp10: 329case LanguageVersion.CSharp10: 402case LanguageVersion.CSharp10: 513result = LanguageVersion.CSharp10;
Microsoft.CodeAnalysis.CSharp.CodeStyle (9)
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 (3)
62=> options.LanguageVersion() >= LanguageVersion.CSharp10; 68=> options.LanguageVersion() >= LanguageVersion.CSharp10; 78=> options.LanguageVersion() >= LanguageVersion.CSharp10;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
318if (!conversion.Exists && expression is LambdaExpressionSyntax && semanticModel.Compilation.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 (141)
src\Analyzers\CSharp\Tests\AddAccessibilityModifiers\AddAccessibilityModifiersTests.cs (1)
566LanguageVersion = 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)
519LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\FixReturnType\FixReturnTypeTests.cs (1)
224LanguageVersion = LanguageVersion.CSharp10
src\Analyzers\CSharp\Tests\GenerateDefaultConstructors\GenerateDefaultConstructorsTests.cs (2)
66LanguageVersion = LanguageVersion.CSharp10, 93LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\ImplementInterface\ImplementInterfaceTests.cs (1)
12277LanguageVersion = 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)
58LanguageVersion = LanguageVersion.CSharp10, 948LanguageVersion = 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)
480LanguageVersion = LanguageVersion.CSharp10, 633LanguageVersion = LanguageVersion.CSharp10, 2105LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\RemoveUnnecessaryLambdaExpression\RemoveUnnecessaryLambdaExpressionTests.cs (1)
66""", LanguageVersion.CSharp10);
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (2)
808""", [LanguageVersion.CSharp7_1, LanguageVersion.CSharp10, LanguageVersion.CSharp11, LanguageVersion.Latest]); 863""", [LanguageVersion.CSharp7_1, LanguageVersion.CSharp10, LanguageVersion.CSharp11, LanguageVersion.Latest]);
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)
5592parseOptions: 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)
501parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp10), 582parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp10), 893parseOptions: 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 (253)
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)
532LanguageVersion = LanguageVersion.CSharp10, 656LanguageVersion = LanguageVersion.CSharp10, 770LanguageVersion = LanguageVersion.CSharp10, 1295LanguageVersion = LanguageVersion.CSharp10, 1369LanguageVersion = LanguageVersion.CSharp10, 1427LanguageVersion = LanguageVersion.CSharp10, 1499LanguageVersion = LanguageVersion.CSharp10, 2857LanguageVersion = LanguageVersion.CSharp10,
PreferFrameworkType\PreferFrameworkTypeTests.cs (1)
300[InlineData(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,
SimplifyTypeNames\SimplifyTypeNamesTests.cs (3)
7234source, new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp10), options: featureOptions)); 7279[InlineData(LanguageVersion.CSharp10)] 7307source, new TestParameters(parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp10), options: featureOptions));
src\Analyzers\CSharp\Tests\AddAccessibilityModifiers\AddAccessibilityModifiersTests.cs (1)
566LanguageVersion = 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)
519LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\FixReturnType\FixReturnTypeTests.cs (1)
224LanguageVersion = LanguageVersion.CSharp10
src\Analyzers\CSharp\Tests\GenerateDefaultConstructors\GenerateDefaultConstructorsTests.cs (4)
51LanguageVersion = LanguageVersion.CSharp10, 66LanguageVersion = LanguageVersion.CSharp10, 81LanguageVersion = LanguageVersion.CSharp10, 93LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\ImplementInterface\ImplementInterfaceTests.cs (1)
12277LanguageVersion = 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)
58LanguageVersion = LanguageVersion.CSharp10, 948LanguageVersion = 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)
480LanguageVersion = LanguageVersion.CSharp10, 633LanguageVersion = LanguageVersion.CSharp10, 2105LanguageVersion = LanguageVersion.CSharp10,
src\Analyzers\CSharp\Tests\RemoveUnnecessaryLambdaExpression\RemoveUnnecessaryLambdaExpressionTests.cs (1)
66""", LanguageVersion.CSharp10);
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (2)
808""", [LanguageVersion.CSharp7_1, LanguageVersion.CSharp10, LanguageVersion.CSharp11, LanguageVersion.Latest]); 863""", [LanguageVersion.CSharp7_1, LanguageVersion.CSharp10, LanguageVersion.CSharp11, LanguageVersion.Latest]);
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, 14923[InlineData(LanguageVersion.CSharp10)] 15063[InlineData(LanguageVersion.CSharp10)] 15140[InlineData(LanguageVersion.CSharp10)] 15230[InlineData(LanguageVersion.CSharp10)]
Semantics\NullableReferenceTypesTests.cs (2)
1221[InlineData(LanguageVersion.CSharp10)] 1258[InlineData(LanguageVersion.CSharp10)]
Semantics\RecordStructTests.cs (1)
8024[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)] 4260[InlineData(LanguageVersion.CSharp10)] 4355[InlineData(LanguageVersion.CSharp10)] 4519[InlineData(LanguageVersion.CSharp10)] 4565[InlineData(LanguageVersion.CSharp10)] 4658[InlineData(LanguageVersion.CSharp10)] 4751[InlineData(LanguageVersion.CSharp10)] 4805[InlineData(LanguageVersion.CSharp10)] 4860[InlineData(LanguageVersion.CSharp10)] 4911[InlineData(LanguageVersion.CSharp10)] 4958if (languageVersion == LanguageVersion.CSharp10) 4988[InlineData(LanguageVersion.CSharp10)] 5034[InlineData(LanguageVersion.CSharp10)] 5058[InlineData(LanguageVersion.CSharp10)] 5082[InlineData(LanguageVersion.CSharp10)] 5132[InlineData(LanguageVersion.CSharp10)] 5182[InlineData(LanguageVersion.CSharp10)] 5232[InlineData(LanguageVersion.CSharp10)] 5261[InlineData(LanguageVersion.CSharp10)] 5316[InlineData(LanguageVersion.CSharp10)] 5364[InlineData(LanguageVersion.CSharp10)] 5403[InlineData(LanguageVersion.CSharp10)] 5457[InlineData(LanguageVersion.CSharp10)] 5489[InlineData(LanguageVersion.CSharp10)] 5517[InlineData(LanguageVersion.CSharp10)] 5545[InlineData(LanguageVersion.CSharp10)] 5568if (languageVersion == LanguageVersion.CSharp10) 5597[InlineData(LanguageVersion.CSharp10)] 5632[InlineData(LanguageVersion.CSharp10)] 5667[InlineData(LanguageVersion.CSharp10)] 5711[InlineData(LanguageVersion.CSharp10)] 5810[InlineData(LanguageVersion.CSharp10)] 5910[InlineData(LanguageVersion.CSharp10)] 5982[InlineData(LanguageVersion.CSharp10)] 6015[InlineData(LanguageVersion.CSharp10)] 6506[InlineData(LanguageVersion.CSharp10)] 6542[InlineData(LanguageVersion.CSharp10)] 6585[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersion, 6621[InlineData(LanguageVersion.CSharp10)] 6653[InlineData(LanguageVersion.CSharp10)] 6681[InlineData(LanguageVersion.CSharp10)] 6724[InlineData(LanguageVersion.CSharp10)] 6753[InlineData(LanguageVersion.CSharp10)] 6778[InlineData(LanguageVersion.CSharp10)] 6878[InlineData(LanguageVersion.CSharp10)] 6904if (languageVersion == LanguageVersion.CSharp10) 6985[InlineData(LanguageVersion.CSharp10)] 7012[InlineData(LanguageVersion.CSharp10)] 7039[InlineData(LanguageVersion.CSharp10)] 7068[InlineData(LanguageVersion.CSharp10)] 7092[InlineData(LanguageVersion.CSharp10)] 7122[InlineData(LanguageVersion.CSharp10)] 7149[InlineData(LanguageVersion.CSharp10)] 7176[InlineData(LanguageVersion.CSharp10)] 7205[InlineData(LanguageVersion.CSharp10)] 7232[InlineData(LanguageVersion.CSharp10)] 7249[InlineData(LanguageVersion.CSharp10)] 7267[InlineData(LanguageVersion.CSharp10)] 7327[InlineData(LanguageVersion.CSharp10)] 10249[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, 11517[InlineData(LanguageVersion.CSharp10)] 11632[InlineData(LanguageVersion.CSharp10)] 11666[InlineData(LanguageVersion.CSharp10)] 11707[InlineData(LanguageVersion.CSharp10)] 11744var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp10)); 11897[InlineData(LanguageVersion.CSharp10)] 13326[InlineData(LanguageVersion.CSharp10)] 13349[InlineData(LanguageVersion.CSharp10)] 13374[InlineData(LanguageVersion.CSharp10)] 13394[InlineData(LanguageVersion.CSharp10)] 14638[InlineData(LanguageVersion.CSharp10)] 14910[InlineData(LanguageVersion.CSharp10)] 15069[InlineData(LanguageVersion.CSharp10)] 16885[InlineData(LanguageVersion.CSharp10)] 19994[InlineData(LanguageVersion.CSharp10)] 20054[InlineData(LanguageVersion.CSharp10)] 20074if (languageVersion == LanguageVersion.CSharp10) 20223[InlineData(LanguageVersion.CSharp10)] 20245[InlineData(LanguageVersion.CSharp10)] 25186[InlineData(LanguageVersion.CSharp10)] 25223[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionA, 25224[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 25264[InlineData(LanguageVersion.CSharp10)] 25315[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionA, 25316[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 25351[InlineData(LanguageVersion.CSharp10)] 25422[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionA, 25423[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 25454languageVersionB == LanguageVersion.CSharp10) 25473[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionA, 25474[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 25513languageVersionB == LanguageVersion.CSharp10) 25566[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 25602[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionA, 25603[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 25640languageVersionB == LanguageVersion.CSharp10) 25736[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 25773if (languageVersionB == LanguageVersion.CSharp10) 25804[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionA, 25852if (languageVersionA == LanguageVersion.CSharp10) 25919[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 25973[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersionB, 27073[InlineData(LanguageVersion.CSharp10, TargetFramework.Net60, false, false)] 27076[InlineData(LanguageVersion.CSharp10, TargetFramework.Net70, true, true)] 27123[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersion, 27180[CombinatorialValues(LanguageVersion.CSharp10, LanguageVersion.CSharp11)] LanguageVersion languageVersion, 30300[InlineData(LanguageVersion.CSharp10)] 30355[InlineData(LanguageVersion.CSharp10)] 30613[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)] 1205[InlineData(LanguageVersion.CSharp10)] 1273[InlineData(LanguageVersion.CSharp10)] 1406[InlineData(LanguageVersion.CSharp10)] 1543[InlineData(LanguageVersion.CSharp10)] 1611[InlineData(LanguageVersion.CSharp10)] 1728[InlineData(LanguageVersion.CSharp10)] 1860[InlineData(LanguageVersion.CSharp10)] 1926[InlineData(LanguageVersion.CSharp10)] 1976[InlineData(LanguageVersion.CSharp10)] 2020[InlineData(LanguageVersion.CSharp10)] 2095[InlineData(LanguageVersion.CSharp10)] 2153[InlineData(LanguageVersion.CSharp10)] 2177[InlineData(LanguageVersion.CSharp10)] 2201[InlineData(LanguageVersion.CSharp10)] 2307[InlineData(LanguageVersion.CSharp10)] 2413[InlineData(LanguageVersion.CSharp10)] 2507[InlineData(LanguageVersion.CSharp10)] 2554[InlineData(LanguageVersion.CSharp10)] 2624[InlineData(LanguageVersion.CSharp10)] 2690[InlineData(LanguageVersion.CSharp10)] 2733[InlineData(LanguageVersion.CSharp10)] 2777[InlineData(LanguageVersion.CSharp10)] 2852[InlineData(LanguageVersion.CSharp10)] 3023[InlineData(LanguageVersion.CSharp10)] 3170[InlineData(LanguageVersion.CSharp10)] 3262[InlineData(LanguageVersion.CSharp10)] 3288else if (langVersion == LanguageVersion.CSharp10) 3492[InlineData(LanguageVersion.CSharp10)] 3559[InlineData(LanguageVersion.CSharp10)] 3630[InlineData(LanguageVersion.CSharp10)] 3706[InlineData(LanguageVersion.CSharp10)] 3782[InlineData(LanguageVersion.CSharp10)] 3854[InlineData(LanguageVersion.CSharp10)] 3941[InlineData(LanguageVersion.CSharp10)] 4021[InlineData(LanguageVersion.CSharp10)] 4092[InlineData(LanguageVersion.CSharp10)] 4161[InlineData(LanguageVersion.CSharp10)] 4236[InlineData(LanguageVersion.CSharp10)] 4309[InlineData(LanguageVersion.CSharp10)] 4385[InlineData(LanguageVersion.CSharp10)] 4459[InlineData(LanguageVersion.CSharp10)] 4530[InlineData(LanguageVersion.CSharp10)] 4605[InlineData(LanguageVersion.CSharp10)] 4681[InlineData(LanguageVersion.CSharp10)] 4756[InlineData(LanguageVersion.CSharp10)] 4827[InlineData(LanguageVersion.CSharp10)] 4898[InlineData(LanguageVersion.CSharp10)] 4973[InlineData(LanguageVersion.CSharp10)] 5049[InlineData(LanguageVersion.CSharp10)] 5116[InlineData(LanguageVersion.CSharp10)] 5187[InlineData(LanguageVersion.CSharp10)] 5260[InlineData(LanguageVersion.CSharp10)] 5333[InlineData(LanguageVersion.CSharp10)] 5417[InlineData(LanguageVersion.CSharp10)] 5486[InlineData(LanguageVersion.CSharp10)] 5556[InlineData(LanguageVersion.CSharp10)] 5635[InlineData(LanguageVersion.CSharp10)] 5706[InlineData(LanguageVersion.CSharp10)] 5785[InlineData(LanguageVersion.CSharp10)] 5906[InlineData(LanguageVersion.CSharp10)] 5958[InlineData(LanguageVersion.CSharp10)] 6014[InlineData(LanguageVersion.CSharp10)] 6092[InlineData(LanguageVersion.CSharp10)] 6160[InlineData(LanguageVersion.CSharp10)] 6217[InlineData(LanguageVersion.CSharp10)] 6307[InlineData(LanguageVersion.CSharp10)] 6390[InlineData(LanguageVersion.CSharp10)] 6446[InlineData(LanguageVersion.CSharp10)] 6517[InlineData(LanguageVersion.CSharp10)] 6577[InlineData(LanguageVersion.CSharp10)] 6649[InlineData(LanguageVersion.CSharp10)] 6710[InlineData(LanguageVersion.CSharp10)] 6801[InlineData(LanguageVersion.CSharp10)] 6857[InlineData(LanguageVersion.CSharp10)] 6917[InlineData(LanguageVersion.CSharp10)] 6978[InlineData(LanguageVersion.CSharp10)] 7038[InlineData(LanguageVersion.CSharp10)] 7094[InlineData(LanguageVersion.CSharp10)] 7150[InlineData(LanguageVersion.CSharp10)] 7210[InlineData(LanguageVersion.CSharp10)] 7271[InlineData(LanguageVersion.CSharp10)] 7323[InlineData(LanguageVersion.CSharp10)] 7379[InlineData(LanguageVersion.CSharp10)] 7457[InlineData(LanguageVersion.CSharp10)] 7525[InlineData(LanguageVersion.CSharp10)] 7597[InlineData(LanguageVersion.CSharp10)] 7667[InlineData(LanguageVersion.CSharp10)] 7738[InlineData(LanguageVersion.CSharp10)] 7810[InlineData(LanguageVersion.CSharp10)] 7877[InlineData(LanguageVersion.CSharp10)] 7945[InlineData(LanguageVersion.CSharp10)] 8001[InlineData(LanguageVersion.CSharp10)] 8053[InlineData(LanguageVersion.CSharp10)] 8092[InlineData(LanguageVersion.CSharp10)] 8160[InlineData(LanguageVersion.CSharp10)] 8194[InlineData(LanguageVersion.CSharp10)] 8257[InlineData(LanguageVersion.CSharp10)] 8324[InlineData(LanguageVersion.CSharp10)] 8362[InlineData(LanguageVersion.CSharp10)] 8399[InlineData(LanguageVersion.CSharp10)] 8440[InlineData(LanguageVersion.CSharp10)] 8488[InlineData(LanguageVersion.CSharp10)] 8533[InlineData(LanguageVersion.CSharp10)] 8575[InlineData(LanguageVersion.CSharp10)] 8624[InlineData(LanguageVersion.CSharp10)] 8672[InlineData(LanguageVersion.CSharp10)] 8713[InlineData(LanguageVersion.CSharp10)] 8763[InlineData(LanguageVersion.CSharp10)] 8808[InlineData(LanguageVersion.CSharp10)] 8865[InlineData(LanguageVersion.CSharp10)] 8911[InlineData(LanguageVersion.CSharp10)] 8982[InlineData(LanguageVersion.CSharp10)] 9023[InlineData(LanguageVersion.CSharp10)] 9068[InlineData(LanguageVersion.CSharp10)] 9114[InlineData(LanguageVersion.CSharp10)] 9159[InlineData(LanguageVersion.CSharp10)] 9200[InlineData(LanguageVersion.CSharp10)] 9249[InlineData(LanguageVersion.CSharp10)] 9290[InlineData(LanguageVersion.CSharp10)] 9336[InlineData(LanguageVersion.CSharp10)] 9382[InlineData(LanguageVersion.CSharp10)] 9419[InlineData(LanguageVersion.CSharp10)] 9460[InlineData(LanguageVersion.CSharp10)] 9501[InlineData(LanguageVersion.CSharp10)] 9546[InlineData(LanguageVersion.CSharp10)] 9594[InlineData(LanguageVersion.CSharp10)] 9665[InlineData(LanguageVersion.CSharp10)] 9699[InlineData(LanguageVersion.CSharp10)] 9737[InlineData(LanguageVersion.CSharp10)] 9800[InlineData(LanguageVersion.CSharp10)] 9839[InlineData(LanguageVersion.CSharp10)] 9916[InlineData(LanguageVersion.CSharp10)] 9986[InlineData(LanguageVersion.CSharp10)] 10024[InlineData(LanguageVersion.CSharp10)] 10080[InlineData(LanguageVersion.CSharp10)] 10122[InlineData(LanguageVersion.CSharp10)] 10185[InlineData(LanguageVersion.CSharp10)] 10228[InlineData(LanguageVersion.CSharp10)] 10298[InlineData(LanguageVersion.CSharp10)] 10336[InlineData(LanguageVersion.CSharp10)] 10378[InlineData(LanguageVersion.CSharp10)] 10421[InlineData(LanguageVersion.CSharp10)] 10463[InlineData(LanguageVersion.CSharp10)] 10501[InlineData(LanguageVersion.CSharp10)] 10539[InlineData(LanguageVersion.CSharp10)] 10581[InlineData(LanguageVersion.CSharp10)] 10624[InlineData(LanguageVersion.CSharp10)] 10658[InlineData(LanguageVersion.CSharp10)] 10696[InlineData(LanguageVersion.CSharp10)] 10750[InlineData(LanguageVersion.CSharp10)] 10808[InlineData(LanguageVersion.CSharp10)] 10878[InlineData(LanguageVersion.CSharp10)] 10966[InlineData(LanguageVersion.CSharp10)] 11020[InlineData(LanguageVersion.CSharp10)] 11121[InlineData(LanguageVersion.CSharp10)] 11363[InlineData(LanguageVersion.CSharp10)] 11395[InlineData(LanguageVersion.CSharp10)] 11483[InlineData(LanguageVersion.CSharp10)] 11519[InlineData(LanguageVersion.CSharp10)] 11609[InlineData(LanguageVersion.CSharp10)] 11689[InlineData(LanguageVersion.CSharp10)] 11744[InlineData(LanguageVersion.CSharp10)] 11804[InlineData(LanguageVersion.CSharp10)] 11844[InlineData(LanguageVersion.CSharp10)] 11899[InlineData(LanguageVersion.CSharp10)] 11990[InlineData(LanguageVersion.CSharp10)] 12031[InlineData(LanguageVersion.CSharp10)] 12087[InlineData(LanguageVersion.CSharp10)] 12131[InlineData(LanguageVersion.CSharp10)] 12176[InlineData(LanguageVersion.CSharp10)] 12218[InlineData(LanguageVersion.CSharp10)] 12264[InlineData(LanguageVersion.CSharp10)] 12323[InlineData(LanguageVersion.CSharp10)] 12390[InlineData(LanguageVersion.CSharp10)] 12437[InlineData(LanguageVersion.CSharp10)] 12507[InlineData(LanguageVersion.CSharp10)] 12570[InlineData(LanguageVersion.CSharp10)] 12616[InlineData(LanguageVersion.CSharp10)] 12668[InlineData(LanguageVersion.CSharp10)] 12718[InlineData(LanguageVersion.CSharp10)] 12774[InlineData(LanguageVersion.CSharp10)] 12825[InlineData(LanguageVersion.CSharp10)] 12882[InlineData(LanguageVersion.CSharp10)] 12928[InlineData(LanguageVersion.CSharp10)] 12978[InlineData(LanguageVersion.CSharp10)] 13029[InlineData(LanguageVersion.CSharp10)] 13079[InlineData(LanguageVersion.CSharp10)] 13125[InlineData(LanguageVersion.CSharp10)] 13179[InlineData(LanguageVersion.CSharp10)] 13225[InlineData(LanguageVersion.CSharp10)] 13275[InlineData(LanguageVersion.CSharp10)] 13326[InlineData(LanguageVersion.CSharp10)] 13368[InlineData(LanguageVersion.CSharp10)] 13414[InlineData(LanguageVersion.CSharp10)] 13473[InlineData(LanguageVersion.CSharp10)] 13540[InlineData(LanguageVersion.CSharp10)] 13592[InlineData(LanguageVersion.CSharp10)] 13662[InlineData(LanguageVersion.CSharp10)] 13736[InlineData(LanguageVersion.CSharp10)] 13846[InlineData(LanguageVersion.CSharp10)] 13963[InlineData(LanguageVersion.CSharp10)] 14022[InlineData(LanguageVersion.CSharp10)] 14086[InlineData(LanguageVersion.CSharp10)] 14154[InlineData(LanguageVersion.CSharp10)] 14228[InlineData(LanguageVersion.CSharp10)] 14275[InlineData(LanguageVersion.CSharp10)] 14362[InlineData(LanguageVersion.CSharp10)] 14418[InlineData(LanguageVersion.CSharp10)] 14486[InlineData(LanguageVersion.CSharp10)]
Parsing\FileModifierParsingTests.cs (4)
1519[InlineData(LanguageVersion.CSharp10)] 3138[InlineData(LanguageVersion.CSharp10)] 3182[InlineData(LanguageVersion.CSharp10)] 3222[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 (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\LanguageVersionExtensions.cs (1)
22=> languageVersion >= LanguageVersion.CSharp10;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (3)
62=> options.LanguageVersion() >= LanguageVersion.CSharp10; 68=> options.LanguageVersion() >= LanguageVersion.CSharp10; 78=> options.LanguageVersion() >= LanguageVersion.CSharp10;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
318if (!conversion.Exists && expression is LambdaExpressionSyntax && semanticModel.Compilation.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)
2098solution = solution.WithProjectParseOptions(project.Id, new CSharpParseOptions(LanguageVersion.CSharp10)); 3130solution = 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)) },