66 references to CSharp7_2
Microsoft.CodeAnalysis.CSharp (6)
Compilation\CSharpCompilation.cs (1)
227internal bool IsPeVerifyCompatEnabled => LanguageVersion < LanguageVersion.CSharp7_2 || Feature("peverify-compat") != null;
Errors\MessageID.cs (1)
623return LanguageVersion.CSharp7_2;
LanguageVersion.cs (4)
286case LanguageVersion.CSharp7_2: 321case LanguageVersion.CSharp7_2: 394case LanguageVersion.CSharp7_2: 494result = LanguageVersion.CSharp7_2;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\MakeStructReadOnly\CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
34if (compilation.LanguageVersion() < LanguageVersion.CSharp7_2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (13)
src\Analyzers\CSharp\Tests\ImplementInterface\ImplementInterfaceTests.cs (2)
4060LanguageVersion = LanguageVersion.CSharp7_2, 11846LanguageVersion = LanguageVersion.CSharp7_2,
src\Analyzers\CSharp\Tests\MakeLocalFunctionStatic\MakeLocalFunctionStaticTests.cs (1)
30private static readonly ParseOptions CSharp72ParseOptions = CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_2);
src\Analyzers\CSharp\Tests\MakeStructReadOnly\MakeStructReadOnlyTests.cs (1)
65LanguageVersion.CSharp7_2);
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (7)
78new CSharpParseOptions(LanguageVersion.CSharp7_2)); 235LanguageVersion.CSharp7_2, 270new CSharpParseOptions(LanguageVersion.CSharp7_2)); 286new CSharpParseOptions(LanguageVersion.CSharp7_2)); 299new CSharpParseOptions(LanguageVersion.CSharp7_2)); 312new CSharpParseOptions(LanguageVersion.CSharp7_2)); 325new CSharpParseOptions(LanguageVersion.CSharp7_2));
src\Analyzers\CSharp\Tests\UseLocalFunction\UseLocalFunctionTests.cs (1)
29private static readonly ParseOptions CSharp72ParseOptions = CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_2);
src\Analyzers\CSharp\Tests\UseSimpleUsingStatement\UseSimpleUsingStatementTests.cs (1)
142LanguageVersion = LanguageVersion.CSharp7_2
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (4)
CommandLineTests.cs (4)
1602[InlineData("7.2", LanguageVersion.CSharp7_2)] 1786InlineData(LanguageVersion.CSharp7_2, LanguageVersion.CSharp7_2), 1829InlineData("7.2", true, LanguageVersion.CSharp7_2),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Attributes\AttributeTests_Dynamic.cs (4)
1299parseOptions: new CSharpParseOptions(kind: sourceCodeKind, languageVersion: LanguageVersion.CSharp7_2))); 1309parseOptions: new CSharpParseOptions(kind: sourceCodeKind, languageVersion: LanguageVersion.CSharp7_2)); 1351parseOptions: new CSharpParseOptions(kind: sourceCodeKind, languageVersion: LanguageVersion.CSharp7_2))); 1394CreateCompilationWithMscorlib461(source: source, parseOptions: new CSharpParseOptions(kind: sourceCodeKind, languageVersion: LanguageVersion.CSharp7_2)).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Features (4)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
256=> options.LanguageVersion() >= LanguageVersion.CSharp7_2;
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
103if (languageVersion < LanguageVersion.CSharp7_2 && token.IsMandatoryNamedParameterPosition())
src\Analyzers\CSharp\Analyzers\MakeStructReadOnly\CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
34if (compilation.LanguageVersion() < LanguageVersion.CSharp7_2)
UseNamedArguments\CSharpUseNamedArgumentsCodeRefactoringProvider.cs (1)
36=> options.LanguageVersion() >= LanguageVersion.CSharp7_2;
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (20)
ConvertLocalFunctionToMethod\ConvertLocalFunctionToMethodTests.cs (1)
375""", parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_2));
EnableNullable\EnableNullableTests.cs (2)
568[InlineData(LanguageVersion.CSharp7_2)] 586LanguageVersion.CSharp7_2 => "CS8320",
MakeLocalFunctionStatic\MakeLocalFunctionStaticRefactoringTests.cs (1)
22private static readonly ParseOptions CSharp72ParseOptions = CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_2);
MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProviderTests.cs (1)
29private static readonly ParseOptions CSharp72ParseOptions = CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_2);
src\Analyzers\CSharp\Tests\ImplementInterface\ImplementInterfaceTests.cs (2)
4060LanguageVersion = LanguageVersion.CSharp7_2, 11846LanguageVersion = LanguageVersion.CSharp7_2,
src\Analyzers\CSharp\Tests\MakeLocalFunctionStatic\MakeLocalFunctionStaticTests.cs (1)
30private static readonly ParseOptions CSharp72ParseOptions = CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_2);
src\Analyzers\CSharp\Tests\MakeStructReadOnly\MakeStructReadOnlyTests.cs (1)
65LanguageVersion.CSharp7_2);
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (7)
78new CSharpParseOptions(LanguageVersion.CSharp7_2)); 235LanguageVersion.CSharp7_2, 270new CSharpParseOptions(LanguageVersion.CSharp7_2)); 286new CSharpParseOptions(LanguageVersion.CSharp7_2)); 299new CSharpParseOptions(LanguageVersion.CSharp7_2)); 312new CSharpParseOptions(LanguageVersion.CSharp7_2)); 325new CSharpParseOptions(LanguageVersion.CSharp7_2));
src\Analyzers\CSharp\Tests\UseLocalFunction\UseLocalFunctionTests.cs (1)
29private static readonly ParseOptions CSharp72ParseOptions = CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_2);
src\Analyzers\CSharp\Tests\UseSimpleUsingStatement\UseSimpleUsingStatementTests.cs (1)
142LanguageVersion = LanguageVersion.CSharp7_2
UseNamedArguments\UseNamedArgumentsTests.cs (2)
44LanguageVersion = LanguageVersion.CSharp7_2, 102LanguageVersion = LanguageVersion.CSharp7_2,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\GenericConstraintsTests.cs (4)
351var oldOptions = new CSharpParseOptions(LanguageVersion.CSharp7_2); 908var oldOptions = new CSharpParseOptions(LanguageVersion.CSharp7_2); 1390var oldOptions = new CSharpParseOptions(LanguageVersion.CSharp7_2); 2086var oldOptions = new CSharpParseOptions(LanguageVersion.CSharp7_2);
Semantics\RefLocalsAndReturnsTests.cs (3)
266}", parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_2)); 284}", parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_2)); 552}", CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_2));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
LexicalAndXml\LexicalTests.cs (1)
35_options72 = new CSharpParseOptions(languageVersion: LanguageVersion.CSharp7_2);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestOptions.cs (1)
29public static readonly CSharpParseOptions Regular7_2 = Regular.WithLanguageVersion(LanguageVersion.CSharp7_2);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Attributes\AttributeTests_ObsoleteAttribute.vb (1)
2707Dim csCompilation = CreateCSharpCompilation("Dll1", csSource.Value, parseOptions:=New CSharp.CSharpParseOptions(CSharp.LanguageVersion.CSharp7_2))
Microsoft.ML.CodeAnalyzer.Tests (4)
Code\BestFriendTest.cs (2)
57LanguageVersion = LanguageVersion.CSharp7_2, 69projectA = projectA.WithParseOptions(((CSharpParseOptions)projectA.ParseOptions).WithLanguageVersion(LanguageVersion.CSharp7_2));
Code\ContractsCheckTest.cs (2)
48LanguageVersion = LanguageVersion.CSharp7_2, 102LanguageVersion = LanguageVersion.CSharp7_2,